Re: Properties of Component in PropertyGrid

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: joeycalisay (hcalisay_at__spamkiller_codex-systems.com)
Date: 11/22/04


Date: Mon, 22 Nov 2004 09:19:15 +0800

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

"Matthias Pieroth" <matthias.pieroth@t-online.de> wrote in message
news:cnlfjr$lcp$00$1@news.t-online.com...
> 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
>
>



Relevant Pages