AutoSize Default =True

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In VB.Net 2003 and previous versions new labels were created with
AutoSize=False. In VB.Net 2005, new labels are created with AutoSize=True.
Why was it changed? Is there somewhere in VB.Net 2005 where this defalut can
be changed back to Autosize=False. I am not interested in creating my own
custom class to fix the problem.
 
Bob,

The option is in the properties for the control. Just select the control on
your form and set the Autosize property to False.

Bruce
 
Bob,

The option is in the properties for the control. Just select the control on
your form and set the Autosize property to False.

Bruce

I think he means he wants to set the default value of AutoSize to
False. That way, every label added will have Autosize turned off and
he won't have to go into properties to change it.

As far as the OP goes, I did see some code on this newsgroup a long
time ago that controlled what code was generated by the designer. It
had to do with passing a value to a constructor parameter when the
control is added, but thats about all I remember.

Thanks,

Seth Rowe
 
Back
Top