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

 Posted by Bhakti on 12/3/2009 | Category: VB.NET Interview questions | Views: 7815
Answer:

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.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response