Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hi,
I would like to know about windows form and its control resize as per system resolution or workarea. so kindly help me anyone for this query.Thanks in advance.
Posted
Updated 19-Oct-11 8:05am
v2

Look into the Anchor and Dock properties for the controls on your forms. Using these properties, pretty much any UI can be made to resize reasonably. The best way to learn about these properties and how to use them properly is to play with them.
 
Share this answer
 
Comments
Sander Rossel 19-Oct-11 14:02pm    
My thoughts exactly. My 5!
Mehdi Gholam 19-Oct-11 14:44pm    
My 5!
Sergey Alexandrovich Kryukov 19-Oct-11 15:19pm    
Basically, that's the key, my 5. I would warn against using of Anchor where Dock can work -- Anchor tends to cause flicker during resize and is more of manual work -- taking care about equal space on, say, left and right in first place is still manual. I also would mention Padding. Main thing is -- no absolute positioning. Anyway, I described it in my solution, please see.
--SA
Please see my past advices to get a resolution-tolerant design:
Zom Out malfunctions when Screen resolution changes[^].

See related past answer:
GUI Apperance - C#.Net[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900