Hi :)

I have some object in a forum, and i want that those
objects will be resize and moved proportionatly after i resize the forum.
(like when i make the forum width bigger, i want that all
the object will get bigger with the forum)


Is there an Automatic method to do that ?
How can i do that ?

Thanks.

Hi :)

I have some object in a forum, and i want that those
objects will be resize and moved proportionatly after i resize the forum.
(like when i make the forum width bigger, i want that all
the object will get bigger with the forum)


Is there an Automatic method to do that ?
How can i do that ?

Thanks.

Look at the Anchor and Dock properties in the properties window...

Hi there,
use the selected control's property window to "anchor" your controls to your form. This will proportionally move your controls vs. window size.

Hi there,
use the selected control's property window to "anchor" your controls to your form. This will proportionally move your controls vs. window size.

you may also need to add in something like:

pictureBox1.ClientSize = new Size(Size.Width, Size.Height);

you may also need to add in something like:

pictureBox1.ClientSize = new Size(Size.Width, Size.Height);

Shoot I posted the wrong code...Try-->
pictureBox1.SizeMode = PictureBoxSizeMode.AutoSize;
I'm fairly sure other controls can be autosized as well.
Check the MSDN Lib ;)

This article has been dead for over six months. Start a new discussion instead.