Tuesday 12 November 2013

How to fit Windows Form to any screen resolution?

" size = Screen.PrimaryScreen.WorkingArea.Size "
this line can only modify size of window-form
(it will not effect controls' locations & size). 
 
for fit your form in any window use 
"windowstate = FormWindowState.maximized"