Hi,
I am running at a resolution of 1280 x 1024, but my maximised form
returns a Me.Width of 1440 whereas
System.Windows.Forms.SystemInformation.WorkingArea .Width returns 1280,
which is the correct value, as there is nothing docked to the desktop
on either the left or the right sides. The
System.Windows.Forms.SystemInformation.WorkingArea .Height returns 962,
as I have a toolbar docked at the top, and there is the taskbar at the
bottom. However, Me.Height returns 967 which is more than the working
area height.
Can somebody explain these discrepancies and how can I obtain the
correct figures?
Thanks,
Richy 2 2837
Richy,
If there is whatever in your form does not decrease the hight of your form.
me. is the class you are working in, normally this is in this kind of
questions the form.
Cor
"Richy" <mo*********@gmail.comschreef in bericht
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi,
I am running at a resolution of 1280 x 1024, but my maximised form
returns a Me.Width of 1440 whereas
System.Windows.Forms.SystemInformation.WorkingArea .Width returns 1280,
which is the correct value, as there is nothing docked to the desktop
on either the left or the right sides. The
System.Windows.Forms.SystemInformation.WorkingArea .Height returns 962,
as I have a toolbar docked at the top, and there is the taskbar at the
bottom. However, Me.Height returns 967 which is more than the working
area height.
Can somebody explain these discrepancies and how can I obtain the
correct figures?
Thanks,
Richy
The class referred to by "Me." is indeed a standard Windows form. The
form is set in the designer to be maximized, I do not control the
height myself, it is set by the system. I have also noticed that on
alternate runs, the given height can vary by 3 pixels - despite it
being maximized and supposedly taking up the available screen space
(which is not changing from run to run).
It's certainly weird behaviour.
Thanks,
Richy
Cor Ligthert [MVP] wrote:
Richy,
If there is whatever in your form does not decrease the hight of your form.
me. is the class you are working in, normally this is in this kind of
questions the form.
Cor
"Richy" <mo*********@gmail.comschreef in bericht
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi,
I am running at a resolution of 1280 x 1024, but my maximised form
returns a Me.Width of 1440 whereas
System.Windows.Forms.SystemInformation.WorkingArea .Width returns 1280,
which is the correct value, as there is nothing docked to the desktop
on either the left or the right sides. The
System.Windows.Forms.SystemInformation.WorkingArea .Height returns 962,
as I have a toolbar docked at the top, and there is the taskbar at the
bottom. However, Me.Height returns 967 which is more than the working
area height.
Can somebody explain these discrepancies and how can I obtain the
correct figures?
Thanks,
Richy
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Alex Shi |
last post by:
In php, is there a way obtain the width of a charactor of a certain font?
Alex
--
==================================================
Cell Phone Batteries at 30-50%+ off retail prices!...
|
by: datastructure |
last post by:
Copyright (c) 2003 by James J. Perry. All Rights Reserved.
char Square::validList = {'r', 'g', 'b'}; //missing an element, is 0
int Square::numValues = 3;
Square::Square()
{
value =...
|
by: johnsonholding |
last post by:
Here is the code for a pop-up window that works in Firefox and not in
IE - I get a java error or something,
Here is the code :
</script>
<SCRIPT language="JavaScript"...
|
by: VidTheKid |
last post by:
THE PROBLEM
The % symbol is too vague when defining dimensions in CSS and HTML. It
can relate to an inherited value, a measure of the containing element
(which can differ between box models) or...
|
by: _Raven |
last post by:
Okay, I am playing with submitting forms with Ajax. I am trying to adapt
this script to my forms:
http://www.captain.at/howto-ajax-form-post-get.php
I have included my code at the bottom of this...
|
by: rodchar |
last post by:
hey all,
i have a plain and simple div on my page and all i've done was change the
background color to fuchsia, made the height and width 95%.
how come the div will expand width-wise the full...
|
by: =?Utf-8?B?am9uZWZlcg==?= |
last post by:
I keep getting the message after I converted a regular aspx page to now be
based on a master page:
"Only Content controls are allowed directly in a content page that contains
Content controls."...
|
by: amrhi |
last post by:
Whats wrong with my code , i cant access to next page.
Looks like the text field cant be read by login.php
Thanks
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
|
by: Ty |
last post by:
Hello all,
I am creating a web site with Visual Stuido 2008. I am trying to use
a java script file to create a busybox for login from this page
http://blogs.crsw.com/mark/articles/642.aspx.
I...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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...
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |