How to assign width to label/button/textbox in ?

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

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