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

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
 
K

Kevin Spencer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top