Hi Friends,
I need to create the forms based on my User Screen resolution. It will be adjust the forms size and their controls based on the user screen.
Thanks in Advance.
Set Screen Size in Winforms?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


AmanRank #607 · 3.9K reputationPosted Mar 29, 2014, 1:31 PM EDT
this.Width = Screen.PrimaryScreen.Bounds.Width;
this.Height = Screen.PrimaryScreen.Bounds.Height;
Above code can fill the Whole screen.
you can also use:
this.Width = Screen.PrimaryScreen.WorkingArea.Width;
this.Height = Screen.PrimaryScreen.WorkingArea.Height;
Now you can adjust your control on the basis of form's width and height
Abhay ShankerRank #375 · 6.7K reputationPosted Mar 29, 2014, 6:11 PM EDT
http://www.techrepublic.com/article/manage-winform-controls-using-the-anchor-and-dock-properties/#.