Click to See Complete Forum and Search --> : hiding Properties


Raistlin
September 10th, 2002, 02:07 PM
I created a user control.

I created some public properties called prop1 and prop2
both relate to SYSTEM.DRAWING.COLOR objects.

When I draw my control onto a form I can see the new properties in the Property Viewer(F4). I also see properties like BackColor and BackGroundImage properties that I do not want to show in the complied control.

How do I hide these???

I believe all the unwanted properties are coming from a datagrid that I have encapulated in my new usercontrol.(I set modifiers = private .... but nothing happen)

Thanks

Raistlin

DSJ
September 10th, 2002, 04:11 PM
Since all usercontrols inherit from System.Windows.Forms.UserControl they will have the properties and methods of this class. You may be able to override or shadow them to hide them, but you still must implement them.