Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / September 2007

Tip: Looking for answers? Try searching our database.

Resize controls with window resize

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Herb - 26 Sep 2007 14:00 GMT
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 - 26 Sep 2007 14:51 GMT
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 - 26 Sep 2007 15:34 GMT
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.

> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.