Hi,
I've created 'Windows Control Library' project in VS2005, created one control in this project which inherits from UserControl class like this:
class MyControl : UserControl
{
MyControl(){_myproperty = 0;}
int _myproperty;
int MyProperty
{
get { return _myproperty;}
set { _myproperty = value}
}
}
So, now, the property is not available in the 'Properties' window while in the designer.
While I compile and run, the 'Test container' appears, where I can see how MyControl works. In the 'Test container' MyProperty is available in the 'Properties'. This is something I can understand.
The problem is, when I add compiled control library reference to another project and add an instance of MyControl to some form in this new project. There is NO MyProperty in the 'Properties' for MyControl instance.
Ideas?