c#
C#
4
Posts
4
Posters
0
Views
1
Watching
-
You can try
MouseHover
[^] orMouseMove
[^].Apps - Color Analyzer | Arctic | XKCD | Sound Meter | Speed Dial
-
To get the position you just use the MouseEventArgs X and Y values. Using the standard visual studio format your code would look like this for a label called label1 that moved with the mouse.
private void Form1_MouseMove(object sender, MouseEventArgs e)
{
label1.Location = new Point(e.X, e.Y);
}From here
-
Try:
Point mouseAt = PointToClient(Cursor.Position);
Console.WriteLine(mouseAt);The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)