HighTechTalks DotNet Forums  

Resize controls with window resize

Dotnet Framework (WinForms DesignTime) microsoft.public.dotnet.framework.windowsforms.designtime


Discuss Resize controls with window resize in the Dotnet Framework (WinForms DesignTime) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Herb
 
Posts: n/a

Default Resize controls with window resize - 09-26-2007 , 09:00 AM






My window opens at a particular size. When a user makes the window taller, I
want to expand the grid control to fit the extra available space. I only want
the grid control to grow with the window resize.

Is there a simple way to accomplish this? I'm using VB.Net in a Windows
application.

System Info:
Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727

Installed Edition: Standard

SQL Server Analysis Services
Microsoft SQL Server Analysis Services Designer
Version 9.00.1399.00

SQL Server Integration Services
Microsoft SQL Server Integration Services Designer
Version 9.00.1399.00

SQL Server Reporting Services
Microsoft SQL Server Reporting Services Designers
Version 9.00.1399.00

Reply With Quote
  #2  
Old   
Roger Stewart
 
Posts: n/a

Default Re: Resize controls with window resize - 09-26-2007 , 09:51 AM






To have .NET manage the size of a control when its parent is resized,
set the control's Anchor property in the Layout section of the
Properties window.


Reply With Quote
  #3  
Old   
Herb
 
Posts: n/a

Default Re: Resize controls with window resize - 09-26-2007 , 10:34 AM



Thanks. I had the grid anchored to top and bottom, but forgot to anchor it's
containing object as well! Both are now anchored to Top and Bottom.

"Roger Stewart" wrote:

Quote:
To have .NET manage the size of a control when its parent is resized,
set the control's Anchor property in the Layout section of the
Properties window.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.