Determine Tablet PC screen mode

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SetonSoftware

    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.Di splaySettingsCh anged
    event. The problem is I can't determine the difference between
    portrait and landscape modes. The PrimaryScreen.W orkingArea.Widt h and
    PrimaryScreen.W orkingArea.Heig ht 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
  • SetonSoftware

    #2
    Re: Determine Tablet PC screen mode

    On Jul 30, 2:37 pm, SetonSoftware <seton.softw... @verizon.netwro te:
    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.Di splaySettingsCh anged
    event. The problem is I can't determine the difference between
    portrait and landscape modes. The PrimaryScreen.W orkingArea.Widt h and
    PrimaryScreen.W orkingArea.Heig ht 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:


    Comment

    Working...