Connecting Tech Pros Worldwide Help | Site Map

Default Text value for Custom Control

Esha
Guest
 
Posts: n/a
#1: Oct 23 '06
I'm trying to create a compisite Windows custom control.
When I create Inherited control with the name, let's say MyLabel and use
Inherits System.Windows.Label, then when I place my control on the Windows
form, the default value for Text property is set to MyLabel1, MyLabel2 and
so on.
When I create Composite control and place there for instance Label control
then I have always Label1 displayed. There is no property Text. I can create
it that property, but I do not know how to set it to MyLabel1, MyLabel2 etc.

Any help please
Thank you


Closed Thread