Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. screen resolution

screen resolution

Scheduled Pinned Locked Moved C#
questioncsharp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SHaroz
    wrote on last edited by
    #1

    I hope this is an easy question: How do i find the screen resolution in .NET? I want to make sure that if the resolution was reduced, my program won't come up out of the visible range. Thanks, Steve

    R 1 Reply Last reply
    0
    • S SHaroz

      I hope this is an easy question: How do i find the screen resolution in .NET? I want to make sure that if the resolution was reduced, my program won't come up out of the visible range. Thanks, Steve

      R Offline
      R Offline
      Rob Graham
      wrote on last edited by
      #2

      you can get the rectangle that defines the desktop boundaries with Rectangle DTRect = Screen.GetBounds(); To get the working area (destop minus taskbar and docked windows): Screen.GetWorkingArea(Screen.GetBounds()); Some ideas are so stupid that only an intellectual could have thought of them - George Orwell

      S 1 Reply Last reply
      0
      • R Rob Graham

        you can get the rectangle that defines the desktop boundaries with Rectangle DTRect = Screen.GetBounds(); To get the working area (destop minus taskbar and docked windows): Screen.GetWorkingArea(Screen.GetBounds()); Some ideas are so stupid that only an intellectual could have thought of them - George Orwell

        S Offline
        S Offline
        SHaroz
        wrote on last edited by
        #3

        Thanks. I knew it would be something obvious like "Screen". I kept trying to find a "Display" object. :laugh: -Steve

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups