Hi,
when we place a label or textbox or other controls from the toolbox on the
form at design time, the Text property of the control automatically contains
the name of the class and an incrementing number after it (label1, textbox3,
etc).
I have a UserControl and I want to modify this string that appears
automatically. Is this possible ?
Thanks,
Dario.
Claes Bergefall - 27 Apr 2006 15:37 GMT
Check out the ControlDesigner.OnSetComponentDefaults method
Here's an example:
http://groups.google.com/group/microsoft.public.dotnet.framework.windowsforms.co
ntrols/msg/d5db87ae95d1c6e9?hl=en&
/claes
> Hi,
>
[quoted text clipped - 7 lines]
> Thanks,
> Dario.
Dario C - 29 Apr 2006 14:50 GMT
Thanks Claes,
that was what I was looking for.
Dario.
> Check out the ControlDesigner.OnSetComponentDefaults method
> Here's an example:
[quoted text clipped - 14 lines]
>> Thanks,
>> Dario.