On Jan 31, 11:19 pm, "Bruce W. Darby" <kraco...@atcomcast.net> wrote:
> 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" <B...@discussions.microsoft.com> wrote in message
>
> news:B164C893-22C8-47C7-96DA-(E-Mail Removed)...
>
> > 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.
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
|