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. Finding Window Postion in relation to the entire screen

Finding Window Postion in relation to the entire screen

Scheduled Pinned Locked Moved C#
questionjsonhelp
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.
  • J Offline
    J Offline
    jtmtv18
    wrote on last edited by
    #1

    hi, i have a real quick question. I just need to find the X,Y (0,0) for the location of my programs Window in relation to the entire Desktop. Reason being is i use a API call called GetPixel() that uses X,Y (location) as a overload...but its X,Y are global X,Y i.e the entire desktop. I need to transfer my X,Y inside my program over to Global Desktop X,Y's. is there a easy way to do this ? Thanks for your help, Time. If you need me to explain clearer please let me know Jesse M. The Code Project Is Your Friend...

    J 1 Reply Last reply
    0
    • J jtmtv18

      hi, i have a real quick question. I just need to find the X,Y (0,0) for the location of my programs Window in relation to the entire Desktop. Reason being is i use a API call called GetPixel() that uses X,Y (location) as a overload...but its X,Y are global X,Y i.e the entire desktop. I need to transfer my X,Y inside my program over to Global Desktop X,Y's. is there a easy way to do this ? Thanks for your help, Time. If you need me to explain clearer please let me know Jesse M. The Code Project Is Your Friend...

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

      Use Form.PointToScreen(). :)

      "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
      "You must be the change you wish to see in the world." - Mahatma Gandhi

      J 1 Reply Last reply
      0
      • J J Dunlap

        Use Form.PointToScreen(). :)

        "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
        "You must be the change you wish to see in the world." - Mahatma Gandhi

        J Offline
        J Offline
        jtmtv18
        wrote on last edited by
        #3

        Thank you very much Sir. Jesse M The Code Project Is Your Friend...

        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