Connecting Tech Pros Worldwide Help | Site Map

Default Text value for Custom Control

  #1  
Old October 23rd, 2006, 02:35 AM
Esha
Guest
 
Posts: n/a
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inclusion of user control within custom control =?Utf-8?B?UmljaEI=?= answers 4 October 6th, 2008 10:35 AM
ControlDesigner for custom control mohit answers 2 October 16th, 2006 02:25 PM
custom control viewstate problem - please help so i can sleep Walter answers 0 October 11th, 2006 11:15 PM
How to specify default text for a custom button control. Vern answers 5 November 17th, 2005 03:34 AM