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.
You can have “pixel” or “point” as measurement unit and get your desired result set.
Label1.Width = Unit.Percentage(12.12)
You can have “pixel” or “point” as measurement unit and get your desired result set.