DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us