How can I set my form to be maximal size for the screen?

  • Thread starter Thread starter steve bull
  • Start date Start date
S

steve bull

I would like my application to display the main form to cover the whole screen.

At present I do this by calling

Screen screen = Screen.PrimaryScreen;

and setting the form size to this. The problem is that the bottom of the form lies under the start bar.

How can I make the form fill out the whole screen less this area and get the size of the form created?

Thanks,

Steve
 
I would like my application to display the main form to cover the whole screen.

At present I do this by calling

Screen screen = Screen.PrimaryScreen;

and setting the form size to this. The problem is that the bottom of the form lies under the start bar.

How can I make the form fill out the whole screen less this area and get the size of the form created?

What properties of the primary screen are you setting the form size to?
Use the WorkingArea of the PrimaryScreen to get the portion of the screen
excluding things like the taskbar and any other docked items.
 
Back
Top