473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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


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
2 1289
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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
3
by: MG | last post by:
It appears that VS.NET limits the size of a web form to the size of your screen based on the resolution of the machine it's running on. Is there a way to make the size of a web form larger than the...
2
by: copyco | last post by:
Does anyone have any suggestions on this? I have a form that can be collapsed into a compact size and expanded back to full size. If the user moves the compact size of the form close to the edge,...
4
by: Philip Wagenaar | last post by:
I have made a form with a tab that containts groupboxes and those contain checkboxes. When I run the application sometimes the outlining for some groupboxes are not shown, if I switch tabs and...
14
by: Galen Somerville | last post by:
My current screen resolution is set to 1024 x 768. My form size always comes up as 1032 x 748. I have tried the help sample ' Retrieve the working rectangle from the Screen class ' using the...
6
by: John | last post by:
Hi I am just wondering what should be the size of forms these days for a winform app to cover general user population, 800x600 or larger? Thanks Regards
2
by: Lennart Nielsen | last post by:
I'm writing an application for a specific screen size for a project. It works fine on my desktop at work, but when I try to tele-commute via VPN & Remote Descktop I can only access part of the...
3
by: blackrunner | last post by:
ERROR in my Query?! ERROR: Element GESCHLECHT is undefined in FORM. i think everything ok. Maby somebody can help me here Element GESCHLECHT is undefined in FORM. The error occurred...
10
by: =?Utf-8?B?UmljaA==?= | last post by:
A lot of users at my workplace use different screen resolutions, and I build apps to use 1680 x 1050 pixels res by default. But some users are using 800 x 600, and the apps are too large for their...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.