EFileTahi-A Posted August 9, 2004 Posted August 9, 2004 How can i get the mouse coords (x, y) from the programs main window? Quote
Administrators PlausiblyDamp Posted August 9, 2004 Administrators Posted August 9, 2004 You can easily get them from the arguments passed to the mouse_down event for the form. private void Form1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { MessageBox.Show(string.Format("X = {0} and Y = {1}", e.X, e.Y)); } Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
EFileTahi-A Posted August 9, 2004 Author Posted August 9, 2004 It works perfectly! I change the event to mousemove and i go what i wanted!! tk u very much Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.