|
|
|
start date: Tue, 21 Aug 2007 15:18:46 -0000,
posted on: microsoft.public.dotnet.framework.windowsforms
back
| Thread Index |
|
1
Jeff
|
|
2
Kevin Spencer
|
How to hide/remove an inherited control using the Designer?
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
Date:Tue, 21 Aug 2007 15:18:46 -0000
Author:
|
Re: How to hide/remove an inherited control using the Designer?
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
"Jeff" wrote in message
news:1187709526.661350.254690@m37g2000prh.googlegroups.com...
> 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
>
Date:Wed, 22 Aug 2007 07:38:09 -0400
Author:
|
|
|