Window size to fit the screen resolution
-
Hi, Is there a way to set the size of the form (in a Windows application) to the same size as the screen's resolution? Thanks.
-
Hi, Is there a way to set the size of the form (in a Windows application) to the same size as the screen's resolution? Thanks.
You could always use the following code:
Height = Screen.PrimaryScreen.Bounds.Height;
Width = Screen.PrimaryScreen.Bounds.Width;Deja View - the feeling that you've seen this post before.
-
Like maximized?
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008) -
You could always use the following code:
Height = Screen.PrimaryScreen.Bounds.Height;
Width = Screen.PrimaryScreen.Bounds.Width;Deja View - the feeling that you've seen this post before.
-
Form.WindowState
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008) -
Thanks, This is a good answer but it doesn't substract the task bar size. Is there a possibility to perform like the maximize fuction?
Ahh - so you want it to look like it's maximized. If you want it to fill the screen, but don't want it to be maximized (i.e. you want to emulate the way office works) change
Bounds
toWorkingArea
.Deja View - the feeling that you've seen this post before.