I want to create a windows form that when i click on a button it show mouse position and type of left click or right click in a label.I use this code:
this.Cursor = new Cursor(Cursor.Current.Handle);
label1.Text = Cursor.Position.X;
label1.Text+= Cursor.Position.Y;
but this show mouse position only from application form not anywhere,how to change it that return mouse position from desktop no a form?
thank you in advance.