Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends...

I'm developing the project with 2 panels(left and Right) in a form. when I clicked a link in left panel the respected user contrlo has to display in the right panel.

My question is i want to fix the size and location of the user control based on the right panel size(anchor property given to right panel).. i.e when i resize the form the panel will automatically resizes and i've to change the location for user control based on the panel resize..

anybody help me...

Thanks in Advance...
Harish...
Posted

1 solution

I advise to use the same directions I've given you in response to your recent question:
Increase the size of the controls when form size increases[^].

—SA
 
Share this answer
 
Comments
CodeHawkz 6-May-11 14:53pm    
I've seen that thread before :) It's not that he can use docking here. He is just wants the form to resize based no the size of the right panel, which is only 1 control (if I am not wrong). I just want to confirm it, if so, it's just simple math :)
Sergey Alexandrovich Kryukov 6-May-11 15:13pm    
Yes, of course, but even this simple math is usually not needed. It can be easy designed the way it arranges itself. It is more maintainable, too.
Thank you for the note.
--SA

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