Friday 30 March 2012

How to assign width to label/button/textbox in vb.net ?

How to assign width to label/button/textbox in vb.net ?



With some scenarios you need to assign width to the controls rubtime. Generally we tend to make it soecified with percentage. At runtime we can use following way to make such assignments.

Label1.Width = Unit.Percentage(12.12)


You can have “pixel” or “point” as measurement unit and get your desired result set.

No comments:

Post a Comment