Discussion:
Resize controls with window resize
(too old to reply)
Herb
2007-09-26 13:00:04 UTC
Permalink
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
Roger Stewart
2007-09-26 13:51:06 UTC
Permalink
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.
Herb
2007-09-26 14:34:01 UTC
Permalink
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.
Post by Roger Stewart
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.
Loading...