Get x and y axes
Hi , i am student. I wanna knw how we get x and y axes as mouse pointe moves
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hiren SoniRank #694 · 3.5K reputationPosted Nov 29, 2009, 3:27 AM EST
Kirtan PatelRank #292 · 8.6K reputationPosted Nov 29, 2009, 3:46 AM EST
if my answer helps you then check "do you like this answer" check box :)
private void Form1_MouseMove(object sender, MouseEventArgs e)
{
label1.Text = e.X.ToString();
label2.Text = e.Y.ToString();
}