So I am making a game on Visual Studio C# and I want the form to be automatically maximized to any user's computer screen when compiled? How can I do that?
views:
71answers:
2
+4
A:
Set the WindowState property of your form to Maximized
.
That will cause your form to be maximumized when it's opened.
Jay Riggs
2010-06-02 04:50:51
In addition, the [FormBorderStyle](http://msdn.microsoft.com/en-us/library/hw8kes41.aspx) can be set to `FormBorderStyle.None` to remove the border as well, for a more *true maximized feeling, no borders added*.
Patrick
2010-06-02 11:14:43
+4
A:
You can do it using one of the following --
- Set the form WindowState = Maximized
Get the screen resolution using following code and set the size of your forms accordingly
int height = Screen.PrimaryScreen.Bounds.Height;
int width = Screen.PrimaryScreen.Bounds.Width;
Ram
2010-06-02 04:50:57