CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2000
    Location
    Canada
    Posts
    59

    hiding Properties

    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

  2. #2
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured