Properties of Component in PropertyGrid

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Matthias Pieroth (matthias.pieroth_at_t-online.de)
Date: 11/19/04


Date: Fri, 19 Nov 2004 20:00:42 +0100

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