C# .NET - how to resize my form according to their monitor resolution in maximum size

Asked By sarani raji on 21-Feb-14 12:00 AM
Robbe Morris replied to sarani raji on 21-Feb-14 07:51 AM
Wire up the resize event on the form and use System.Windows.Forms.Screen.PrimaryScreen.WorkingArea
Sathish S replied to sarani raji on 04-Mar-14 01:02 AM
You dont have to resize your forms according to screen resolution. All you have to do is to make the form maximized before showing a form and you have to place all your controls inside a layout control.

The flowlayoutpanel control and the tablelayoutpanel control provide intuitive ways to arrange controls on your form. Both provide an automatic, configurable ability to control the relative positions of child controls contained within them, and both give you dynamic layout features at run time, so they can resize and reposition child controls as the dimensions of the parent form change. Layout panels can be nested within layout panels, to enable the realization of sophisticated user interfaces.

More details at : http://msdn.microsoft.com/en-us/library/w4yc3e8c(v=vs.90).aspx