Click here to Skip to main content
15,891,409 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi can anybody tell me how to avoid rectangle shape from moving away from center when the form is minimized & maximized. The rectangle shape added to the center of the windows form moves away from the center when minimized & maximized. Also i have set the anchor property of the rectangle to be TOP but still this doesn't help me out.

Thanks in advance.
Posted

1 solution

Hi there,
try to change the anchor and dock properties of the rectangle control

Good Luck,
z3ngew
 
Share this answer
 
v3
Comments
Sergey Alexandrovich Kryukov 16-Aug-13 9:39am    
Of course, a 5.
—SA
Jagadisha_Ingenious 23-Aug-13 3:07am    
@z3ngew: Hi i tried but it doesn't work. I have a MDI form in which one of the child form consists of rectangle shape. This rectangle shape changes its location when i minimize & restore the MDI Parent form & not when i do the same with the child form. So how do i avoid this...?

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