Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8139855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:57:57+00:00 2026-06-06T11:57:57+00:00

i am trying to develop a remote desktop apps with c#. so i have

  • 0

i am trying to develop a remote desktop apps with c#. so i have couple of question regarding mouse coordinate calculation based on picture box

  1. suppose i have picture box and i want to capture mouse coordinate when i will move my mouse
    on that picture box in c#?

  2. if i click at location (200, 300) on my picture box. then how can i determine
    programmatically resolution of picture box and convert that (200,300) coordinate based on
    that resolution.

  3. when i will send (x, y) coordinate to other machine and if that pc has resolution have like
    1024×768 then what logic i need to use to convert (x, y) according to that pc resolution

if possible help me with small sample code for my question. thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T11:57:58+00:00Added an answer on June 6, 2026 at 11:57 am

    Simple, the easiest way is to transform your coordinates to a normalized form (ranging from 0 to 1). Then you can use these normalized coordinates to calculate the mousePosition on another resolution. This way the devices don’t need to know the other devices resolution.

    So:

    //First Normalize the clickPosition using the current resolution
    //clickPos(200,300) and resolution(800,600) => normalized(0.25,0.5)
    var normalized = clickPos/resolution;
    
    //Now you can send this information to the other device
    //The other device uses the normalized parameter to calculate the mouseClick with his  resolution
    //normalized(0.25,0.5) and otherResolution(1280,720) => otherDeviceClickPos(320, 360)
    var otherDeviceClickPos = normalized * otherResolution;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to develop my first ASP.NET MVC web app and have run into
I am trying to develop an application which shows WPF InkCanvas drawings on remote
trying to develop web form using jquery. all i need is to have several
I have been trying to develop an app for my ipad which i can
I am trying to develop C# app where I want to have login form
I am trying to develop a document based mac app using this Apple walkthrough
I have been trying to develop some user controls, one being a text edit
Good day, I have a question here. I am trying to fetch image from
I am trying develop a basic referrer system to my Django website, system will
im trying to develop an app for a win CE mobile device that downloads

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.