Hi @NachitoMax ,
In winform, you can use 'Cursor.Position.X' and 'Cursor.Position.Y' to get the cursor position.
Then bind to bind to MouseDown event.
private void Form1_MouseDown(object sender, MouseEventArgs e)
{
label1.Text = "X:" + Cursor.Position.X;
label2.Text = "Y:" + Cursor.Position.Y;
}
Also take a look at:
Getting mouse position in c#
Hope them could be helpful.
Best Regards,
Xingyu Zhao
*
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.