Property of Custom Control

Joined
Jul 4, 2005
Messages
19
Reaction score
0
Good Day,
I programmed my first Custom Control thanks to http://www.intelliprog.com/articles/index.html

I add to my Control one string property. But I am not able to fill it up in design mode of my application. Everytime when I write some text into property and press Enter, this text disappear.
In InitializeComponent function of my Form I have always MyControl.MyText = null;

Property in my control:

#if NETCFDESIGNTIME
[
System.ComponentModel.Category("Ex"),
System.ComponentModel.Description("Some text")
]
#endif
private string pMyText;
public string MyText
{
get{return pMyText;}
set{pMyText = value;}
}

Somebody know how to solve this problem?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top