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 / November 2004

Tip: Looking for answers? Try searching our database.

Properties of Component in PropertyGrid

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matthias Pieroth - 19 Nov 2004 19:00 GMT
Hi NG,

I built a GUI-Builder with C# and use own components like TableRow-Object as
designed-time-components which are derived from Panel. Just like in other
IDEs I show the Properties of a TableRow-Object in a Property-Grid. The
TableRow has the interface ILayoutComponent, an interface I defined. My
problem is: I see all Properties of the Panel-class in the Property-Grid,
but I only want to see the Properties which I defined in my
ILayoutComponent-interface. Is it possible to hide the Properties of the
base class and only show the Properties of the derived class or the inerface
which is implemented?

Thanx in advance

Matthias
joeycalisay - 22 Nov 2004 01:19 GMT
If you want it to be hidden from the PropertyGrid but still use it in
editor, you have to implement ICustomTypeDescriptor.  If you want to totally
remove the said properties, you have to attach a custom designer
implementing your own PreFilterProperties/PostFilterProperties method.

try this link:

http://www.awprofessional.com/articles/printerfriendly.asp?p=169528

> Hi NG,
>
[quoted text clipped - 11 lines]
>
> Matthias

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.