G
Guest
I am creating a UserControl in VS.NET 2003 (VB.NET). I would like my control
to display its name at design time when it is dropped onto a form, similar to
how a TextBox displays "TextBox1".
I tried doing this inside the UserControl's constructor after
InitializeComponent() by reading Me.Name, but it only gets the classname
"MyUserControl" not "MyUserControl1" or "MyUserControl2", etc. At what point
(event, override, etc) should I read Me.Name or should I read a different
property? I looked around for another suitably-named override or event like
OnRename or Renamed or OnNameChanged etc...
Thanks for the help!
to display its name at design time when it is dropped onto a form, similar to
how a TextBox displays "TextBox1".
I tried doing this inside the UserControl's constructor after
InitializeComponent() by reading Me.Name, but it only gets the classname
"MyUserControl" not "MyUserControl1" or "MyUserControl2", etc. At what point
(event, override, etc) should I read Me.Name or should I read a different
property? I looked around for another suitably-named override or event like
OnRename or Renamed or OnNameChanged etc...
Thanks for the help!