Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 12th, 2007, 10:08 PM
Registered User
 
Join Date: Apr 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Get the mouse coords?

In C# how do I get the screen coordinates of the mouse and assign the X and Y values to variables?

 
Old April 13th, 2007, 12:14 PM
Authorized User
 
Join Date: Mar 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

http://msdn2.microsoft.com/en-us/lib....position.aspx

 
Old April 14th, 2007, 07:59 PM
Registered User
 
Join Date: Apr 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry I'm pretty much completely new to C# and don't really understand what I'm being told to do in that link. I've tried a number of different things and I'm still getting compile errors. I created a device for the mouse it's just getting this data that I'm having trouble with. Any other suggestions or am I just missing something really basic?

 
Old April 14th, 2007, 08:23 PM
Registered User
 
Join Date: Apr 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OH! Nevermind I just got it thank you :)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouse Ravikiran VB.NET 1 June 8th, 2007 04:57 PM
Where's my mouse? Giant_robot_sandwich Javascript How-To 2 January 9th, 2007 09:22 AM
On Mouse Over teresagoh Javascript 1 February 13th, 2006 10:11 AM
what my mouse is on? nerssi Javascript 3 August 9th, 2005 01:34 AM
Image Map Coords interrupt Javascript How-To 1 March 8th, 2005 09:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.