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. .NET (Core and Framework)
  4. Retreiving the user's screen resolution

Retreiving the user's screen resolution

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpquestion
4 Posts 3 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.
  • B Offline
    B Offline
    bneacetp
    wrote on last edited by
    #1

    How would I determine what the user's screen resolution is set to using .NET? :confused: Happy Programming! WWW::CodeProject::BNEACETP

    J 1 Reply Last reply
    0
    • B bneacetp

      How would I determine what the user's screen resolution is set to using .NET? :confused: Happy Programming! WWW::CodeProject::BNEACETP

      J Offline
      J Offline
      jnewman
      wrote on last edited by
      #2

      Screen.PrimaryScreen.Bounds.Width Screen.PrimaryScreen.Bounds.Height

      B J 2 Replies Last reply
      0
      • J jnewman

        Screen.PrimaryScreen.Bounds.Width Screen.PrimaryScreen.Bounds.Height

        B Offline
        B Offline
        bneacetp
        wrote on last edited by
        #3

        Thanks for the help! :-D Happy Programming! WWW::CodeProject::BNEACETP

        1 Reply Last reply
        0
        • J jnewman

          Screen.PrimaryScreen.Bounds.Width Screen.PrimaryScreen.Bounds.Height

          J Offline
          J Offline
          J Dunlap
          wrote on last edited by
          #4

          Note that you should not assume that the user has your window on his primary screen. ;)

          **"If it is not right do not do it; if it is not true do not say it." -- Marcus Aurelius

          FLUID UI Toolkit | FloodFill in C# & GDI+**

          Sorry, I stil have my Christmas sig - need to change it!

          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