Proportional Resizing

Joined
Jul 30, 2006
Messages
10
Programming Experience
1-3
Hey! i need to be able to resize controls in a panel proportioanlly to the forms size. What ive done is check one control with all the others to find if its the furthest left (in the panel) and the top. Then if it is just add the forms difference (new height - old height) to the control. Do the same with the top and left depending on which control it is. I though this would work... but it seems that they all resize too much. Basically i want the panel to look the same, but just have the controls bigger and moved over to allow the smaller controls to increase in width.

any help at all would be awesome :) thanks
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,604
Location
Norway
Programming Experience
10+
Explore the possibilities of the Anchor property, you can set this in Designer view. You can anchor a control independently to top/bottom/left/right.
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,604
Location
Norway
Programming Experience
10+
Our posts must have crossed on the wire. I saw yours very shortly
after I sent mine. lol
I've seen similar curiosities lately with the new vB board, there are lots of asynchronous stuff here that could interfere with refreshing pages. Attachments for instance may pop into post a little while after the post appears.
 
Top Bottom