all groups > dotnet windows forms designtime > august 2004 >
You're in the

dotnet windows forms designtime

group:

Custom properties don't show on Properties Window


Custom properties don't show on Properties Window Walter Schmidt
8/20/2004 12:41:13 AM
dotnet windows forms designtime:
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

Re: Custom properties don't show on Properties Window Frank Hileman
8/20/2004 6:33:37 AM
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

[quoted text, click to view]

AddThis Social Bookmark Button