B
billy
So let's say I start out with a new project (C++, CLR, Windows Form
App). Then go right to Add Class | User Control and name it Foo. Then I
add this code:
public:
int _propertyTest;
[Description(L"Test Property Visibility")]
[Category(L"Testing")]
[DefaultValue(true)]
[Browsable(true)]
[EditorBrowsable(EditorBrowsableState::Always)]
[Bindable(true)]
property int PropertyTest
{
int get()
{
return (_propertyTest);
}
void set(int inVal)
{
_propertyTest = inVal;
}
}
Shouldn't I see PropertyTest in the properties window? I must be doing
something wrong, but I can't see what. I've also tried to declare
PropertyTest as virtual.
Also, I want this to show up in the toolbox window as well but it
doesn't. I'm using the July distribution of VS.NET 2005 beta by-the-way.
Thanks,
~billy
App). Then go right to Add Class | User Control and name it Foo. Then I
add this code:
public:
int _propertyTest;
[Description(L"Test Property Visibility")]
[Category(L"Testing")]
[DefaultValue(true)]
[Browsable(true)]
[EditorBrowsable(EditorBrowsableState::Always)]
[Bindable(true)]
property int PropertyTest
{
int get()
{
return (_propertyTest);
}
void set(int inVal)
{
_propertyTest = inVal;
}
}
Shouldn't I see PropertyTest in the properties window? I must be doing
something wrong, but I can't see what. I've also tried to declare
PropertyTest as virtual.
Also, I want this to show up in the toolbox window as well but it
doesn't. I'm using the July distribution of VS.NET 2005 beta by-the-way.
Thanks,
~billy