PC Review


Reply
Thread Tools Rate Thread

AutoSize Default =True

 
 
=?Utf-8?B?Qm9i?=
Guest
Posts: n/a
 
      1st Feb 2007
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.
 
Reply With Quote
 
 
 
 
Bruce W. Darby
Guest
Posts: n/a
 
      1st Feb 2007
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" <(E-Mail Removed)> 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.



 
Reply With Quote
 
rowe_newsgroups
Guest
Posts: n/a
 
      1st Feb 2007
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making the default printer, the true default PRR Windows XP General 3 10th Feb 2010 02:53 AM
adding text boxes at runtime and setting autosize to True RCGUA Microsoft Excel Programming 0 9th Dec 2008 08:04 PM
Default autoEventWireup changed to true? Danny Tuppeny Microsoft ASP .NET 7 30th Oct 2005 09:43 PM
Label.AutoSize = true : Application.Idle --> Bug? Weber Samuel Microsoft C# .NET 1 15th Oct 2004 07:53 AM
Command1.Default = True =?Utf-8?B?UmFuZHkgWW9yaw==?= Microsoft VB .NET 3 20th Aug 2004 11:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:53 PM.