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 / WinForm General / October 2004

Tip: Looking for answers? Try searching our database.

resize more than one control proportion

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DraguVaso - 26 Oct 2004 09:08 GMT
Hi,

I have to DataGrid's on a form, one on the top of my form, the other at the
bottom, but they though each other somewhere in the middle. What I want now
is that, when I resize the form, they resize in the same proportions: So
when I resize the Form with 50%, they each have to resize with 50%.

The maximum what I can achieve now is that one of them resizes, and the
other keeps the same height, if I don't do it like that one of the
DaatGrid's comes in front of the other.

Any help would be really appreciated!

Thansk a lot in advance,

Pieter
Maqsood Ahmed - 26 Oct 2004 10:12 GMT
You can do it by some mathematical calculation by getting the
proportional size changed of the form and then set Grids' Locations and
sizes accordingly in SizeChanged Event of Form.

Maqsood Ahmed
Kolachi Advanced Technologies
http://www.kolachi.net

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.