470,614 Members | 1,549 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,614 developers. It's quick & easy.

How to hide a object's inherited properties ?

I create a user control object and show its properties through a propertygrid
object in my application. It is sure that there are 100 hundred of properties
inherited from System.Windows.Forms.UserControl and they are all showed on
the propertygrid. Is there a way i can hide all these inherited properties
and show only my user control's properties ?

Jul 21 '05 #1
1 1285
What I would do is create a inner-class in the inherited class that holds all
the data. This way you have complete control of what properties are shown.
Use something like myProp.SelectedObject = this.Data where Data is a
reference to the inner-class.
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

19 posts views Thread by dmiller23462 | last post: by
2 posts views Thread by owingruters | last post: by
19 posts views Thread by Simon Verona | last post: by
12 posts views Thread by Ray Cassick \(Home\) | last post: by
reply views Thread by porter_wss | last post: by
6 posts views Thread by burningodzilla | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.