How to hide/remove an inherited control using the Designer?

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

My derived Form inherits several controls, including a Panel that is
Dock.Top. Using the Designer on the derived From, how can hide/remove
that inherited panel that this particular derived Form does not need?
Setting the panel.Visible = false, prevents the Panel from drawing,
but the Panel still takes up space at the top of the derived Form.

Thanks,
Jeff
 
The problem is not that the Panel takes up space. It is that the other
Controls are positioned on the Form. If you want to reposition the other
Controls if the Panel is not visible, you need to reposition them.

--
HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 
Back
Top