Connecting Tech Pros Worldwide Help | Site Map

Default Text value for Custom Control

 
LinkBack Thread Tools Search this Thread
  #1  
Old October 23rd, 2006, 01:35 AM
Esha
Guest
 
Posts: n/a
Default 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



 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.