Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / August 2004

Tip: Looking for answers? Try searching our database.

Custom properties don't show on Properties Window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Walter Schmidt - 20 Aug 2004 08:41 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.