- 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?
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?