I'm not sure if this is the best way to do it, but am I right in saying I
could just do something like:
Panel1.Controls.Item(0).Size = New Size(Panel1.Width, Panel1.Height)
in the main form, and handle the controls contained within the user controls
through each of the separate user control's resize event?
Is there a better way, or is that pretty much standard?
-Jason
"OpticTygre" <op********@adelphia.net> wrote in message
news:uv********************@adelphia.com...
I have a treeview and a panel inside of a form. Depending on what item in
the treeview is clicked, different user controls get loaded into the
panel. If the form is resized, or maximized the panel stretches with the form,
but the user controls stay static. Is there a way I can stretch the user
control forms automatically (as well as reposition all objects on the user
controls) when the size of the panel changes? Thanks for any advice.
-Jason