473,488 Members | 2,516 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Determine Tablet PC screen mode

I'm developing a VB.NET 2005 WinForms application that will run on a
tablet PC. I want to build a screen resizer method that will position
the forms and controls properly depending on whether the display is in
landscape mode (using the tablet like a notebook with keyboard) or
portrait mode (using the tablet, well, as a tablet). I can trap when
the user flips the display via the SystemEvents.DisplaySettingsChanged
event. The problem is I can't determine the difference between
portrait and landscape modes. The PrimaryScreen.WorkingArea.Width and
PrimaryScreen.WorkingArea.Height both return the same values
regardless of how the display is set.

How do I determine which mode I'm in so I can resize things
accordingly?

Thanks

Carl
Jul 30 '08 #1
1 3451
On Jul 30, 2:37*pm, SetonSoftware <seton.softw...@verizon.netwrote:
I'm developing a VB.NET 2005 WinForms application that will run on a
tablet PC. I want to build a screen resizer method that will position
the forms and controls properly depending on whether the display is in
landscape mode (using the tablet like a notebook with keyboard) or
portrait mode (using the tablet, well, as a tablet). I can trap when
the user flips the display via the SystemEvents.DisplaySettingsChanged
event. The problem is I can't determine the difference between
portrait and landscape modes. The PrimaryScreen.WorkingArea.Width and
PrimaryScreen.WorkingArea.Height both return the same values
regardless of how the display is set.

How do I determine which mode I'm in so I can resize things
accordingly?

Thanks

Carl
OK, I posted before doing sufficient research. Here is the solution:

http://msdn.microsoft.com/en-us/library/ms812142.aspx
Jul 30 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1696
by: Aaron | last post by:
I would like to use tablet pc sdk's text recognition feature in my c# app. I don't want the end-user to install tablet pc sdk, all they need is the nessesary dll's for the text recognition feature....
2
3530
by: André | last post by:
I'm considering buying a Tablet PC and read somewhere (sorry, can't point to a link) that someone had tried running a "standard" Python program (wxMozilla demo I *think*, but can't be sure) that...
0
1683
by: ray.bradbury9 | last post by:
Hello, First of all, sorry because of my poor english. I am having a weird problem that I don´t know how to solve. I am not sure even if it is a problem within the OS or the .NET Framework....
2
4516
by: Al | last post by:
Hi, I wrote a similar application for getting ink input before release of the Windows XP Tablet PC edition. However, now I would like to use the Tablet PC Input Panel instead. Can anyone tell me...
1
3230
by: eolsson | last post by:
I have a .NET application and have added handwriting (via the PenInputPanel class) for users with Tablet PCs. The problem I'm having is that if I call this class it throws a runtime error if the...
1
1587
by: jrsjrs | last post by:
I have been looking for a solution to this problem for a long time. Any guidance from anyone would be much appreciated. I have a website with a chatroom. I wish to add "tablet and stylus" input...
0
1903
by: sanwan | last post by:
Windows XP Tablet PC http://microsoft.com/france/windows/xp/tabletpc/images/banner.jpg La nouvelle version du c¨¦l¨¨bre OS de Microsoft, Windows XP est diponible pour les PC au format Tablet....
1
1483
by: =?Utf-8?B?TWljaw==?= | last post by:
Hello. I have a table PC, running Vista Home Premium (64bit) and when I try to write with the stylus, it is VERY slow to repsond to the touch, and it often does'nt record a key stroke, or at least...
0
6967
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
7142
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,...
0
7181
jinu1996
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...
0
7352
tracyyun
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...
0
5445
agi2029
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,...
1
4875
isladogs
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...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
618
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
272
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.