title: Find mouse cursor dependent on windows form(not all screen)
body: <p>(Maybe there is a topic in this, but unfortunately I can't find it)</p>
  
  <p>How can I find mouse coordinate dependent to windows form ?</p>
  
  <p>Below code in c# can show mouse coordinate :</p>
  
  <pre><code>    private void Form1_MouseMove(object sender, MouseEventArgs e)
      {
  
          label1.Text = string.Format("X: {0} , Y: {1}", Cursor.Position.X, Cursor.Position.Y);
      }
  </code></pre>
  
  <p>But this code show the coordinate in whole screen, when I want the coordinate (0,0) be top-left side of my form!</p>
  
  <p>And I know that i can use <a href="http://msdn.microsoft.com/es-es/library/system.windows.forms.cursor.position.aspx" rel="nofollow">Cursor.Position</a> and <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.control.pointtoclient.aspx" rel="nofollow">PointToClient</a> , but I cant solve my problem with them. can any one help me with several lines code?</p>
  
  <p>(I use windows form)</p>