Default Text value for Custom Control



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


.



Relevant Pages

  • Change labels Name when Text assigned at design time programmatically?
    ... I have my own control that inherits from Label. ... it defaults the object Name to MyLabel1 and the Text to MyLabel1. ... private sub MyLabel_TextChanged.... ...
    (microsoft.public.vsnet.ide)
  • Problems referencing an inherited user control in my windows app p
    ... I created my own user control from the Windows Control Library template. ... I then added a reference to my inherited control to the windows app project. ...
    (microsoft.public.dotnet.languages.vb.controls)
  • Re: Derived Form Controls or Custom User Controls
    ... I haven't found an easy way to add an inherited control to the toolbox unless it ... regular ListBox to the form so the ...
    (microsoft.public.dotnet.languages.csharp)
  • Help with Inherited Control
    ... I'm trying to create a list box control that replaces the itemData ... that property get applied to the listbox as a whole. ... I actually have to make an inherited control out of the ListControl ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Derived Form Controls or Custom User Controls
    ... inherited control to the toolbox without creating a seperate assembly? ... encapsulation rather than creating a resuable user control or tool. ... Customer', 'Delete Customer', and 'Cancel'. ... I would like to have the listbox manage all of its own functions and the ...
    (microsoft.public.dotnet.languages.csharp)