Discussion:
How to customize the Label and set the property of AutoSize to False?
(too old to reply)
Ryou kaihou
2007-06-14 07:07:04 UTC
Permalink
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
OD
2007-07-15 12:39:29 UTC
Permalink
Post by Ryou kaihou
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?
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
Loading...