By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,563 Members | 1,058 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,563 IT Pros & Developers. It's quick & easy.

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

P: n/a

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
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Tue, 28 Jun 2005 00:59:18 -0400, steve bull wrote:
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.
--
Tom Porterfield
Nov 17 '05 #2

P: n/a

Thanks. That is what I was looking for.
Steve

On Tue, 28 Jun 2005 06:30:37 -0400, Tom Porterfield <tp******@mvps.org> wrote:
On Tue, 28 Jun 2005 00:59:18 -0400, steve bull wrote:
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.


Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.