Hello,
I'm beginner .NET developer, working on C#.
Trying to create custom property for the main form of a project. This
property should be be visible on Properties Window - so I'm using
[Browsable(true),
EditorBrowsable (EditorBrowsableState.Always),
Description ("Some Description"),
Category ("Custom")]
After rebuilding - this property still not shown in Properties Window. Can
anybody tell me why is that?
If I try to create inherited form - I can see my new property in Properties
and everything is OK, but not for my original form. Please help.
Thanks,
WS
Frank Hileman - 20 Aug 2004 14:33 GMT
VS does not instantiate the root component you are developing -- the Form in
this case. Instead it instantiates the base class of this component. So you
will not see any new properties on the root component being developed. That
component is not necessarily compilable, and even if it is, there are
various practical reasons why the VS team chose to use the base class
instead. See Brian Pepin's weblog for more details:
http://www.urbanpotato.net/Default.aspx/document/970
Regards,
Frank Hileman
check out VG.net: www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor
> Hello,
>
[quoted text clipped - 18 lines]
>
> WS