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

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
 
T

Tom Porterfield

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top