The question is not formulated correctly (please see my comment to the question); I can just guess what do you mean.
You need to develop a decent form layout. No absolute positioning anymore; everything should be based on nested panels, the panels and all other controls should be docked using the property
System.Windows.Forms.Control.Dock
and
System.Windows.Forms.Control.Padding
, set appropriate
MinimumSize
and
MaximumSize
for the forms, etc.
Please see:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.aspx[
^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.aspx[
^].
Sometime you can also adjust layout during run time by overriding one or more of the virtual methods like
OnClientSizeChanged
,
OnSizeChanged
,
OnResize
,
OnResizeBegin
,
OnResizeEnd
, but usually, if layout is simple enough and correct, it won't be necessary.
Please see my past answers:
Zom Out malfunctions when Screen resolution changes[
^],
how to dock button so that it can adjust with the form[
^] (will find a rudimentary code sample here).
See also:
GUI Apperance - C#.Net[
^].
—SA