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...

Use the form's resize event, and apply it on the other controls i guess :D

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 ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.