Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friend..
I have a form.. in wihch 2 panels are there(left panel and right panel)
when the form resizes the panels will also increases.. my question is how to place the user control at the center of the right panel when the form resizes to different size...

thanks in advance...
Harish Reddy

Use Anchors to keep the controls at the right position.[^]
Share this answer
Kim Togo 5-May-11 7:40am    
Good answer, my 5.
Sergey Alexandrovich Kryukov 5-May-11 18:39pm    
I don't recommend anchors. They are not always applicable, hard to support and tend to cause flicker. Dock and Padding should be used.
Please see my answer.
Please consider my past advises for resolution-tolerant UI:

Zom Out malfunctions when Screen resolution changes[^],
GUI Apperance - C#.Net[^].

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