Archive for the ‘Programming’ Category

Resize textbox control base on font and max length in vb.Net

Tuesday, January 17th, 2012

The purpose for this code is to dynamically change the textbox width base on its max length and font. This is a slightly modified code Provided by: FMS Development Team

Resize a Control to Fit Text

There are times when you want a form to dynamically resize one or more controls to fit their entire text. For example, given a specific text value, you want a textbox that grows wide enough to show the entire string. .NET provides various measurement functions in the System.Graphics library to accomplish this.
(more…)

Incoming search terms for the article:

textbox with in base al maxlenght, calculate fontsize in function of string lenght in itext, calculate text control width from field maxlength net, calculate textbox length based on maximum, dynamically change size base, enable resize textbox vb net, System Drawing SizeF, vb net get font width max control, vb net text changed length

Add Barcode to PDF Pages Using iTextSharp and VB.NET

Thursday, January 6th, 2011

I was tasked to convert any documents to PDF and add user generated barcode in each page. Using iTextsharp.dll, I finally managed to place barcodes along the top left side of the target PDF pages.

Using iTextsharp.dll to manipulate an existing PDF file and a procedure of adding watermark images that I found while searching the web. I combined the two and I came up with this.
(more…)

Incoming search terms for the article:

itextsharp barcode, itextSharp barcode 39, itextsharp barcode39, barcode itextsharp, add barcode to pdf, itextsharp add barcode, itextsharp barcode width, itextsharp vb net, iTextSharp text pdf Barcode, itextsharp place barcode in pdf, iTextSharp stamper, vb net itextsharp barcode, itextsharp barcode vb net, itextsharp PdfReader, pagecount itextsharp, itextsharp barcode stamper, itextsharp barcode39 width, itextsharp photo gallery, itext barcode39 width, Barcode39 itextsharp