all groups > dotnet windows forms designtime > june 2007 >
You're in the

dotnet windows forms designtime

group:

How to customize the Label and set the property of AutoSize to False?



How to customize the Label and set the property of AutoSize to False? Ryou kaihou
6/14/2007 12:00:00 AM
dotnet windows forms designtime: Hello All,

As we known, in Visual Stdio 2003 or 2005, the property of Autosize of Label
is set to True by defaut, how can I customize this and set property of
Autosize to False?

Any ideas?

Thanks
Re: How to customize the Label and set the property of AutoSize to False? OD
7/15/2007 2:39:29 PM
[quoted text, click to view]

of course... there's a couple of possibilities. For examples you can
create a new Label class (MyLabel), inheriting from Label. In the code
just set the properties you want to customize. Then use MyLabel instead
of Label.
To customize an existing control, read this MS paper :
http://support.microsoft.com/kb/815775/en-us

--


OD___
www.e-naxos.com

AddThis Social Bookmark Button