424,303 Members | 1,366 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,303 IT Pros & Developers. It's quick & easy.

set Mouse Position

P: n/a
Hi,

by Control.MousePosition we can find the mouse position. but how we can set
the mouse position?

thanks
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Motjaba,

You can set the position through the static Position property on the
Cursor class. However, it takes the position in screen coordinates.
Switching from control to screen is easy. You just have to pass the point
in control coordinates and pass to those to the PointToScreen method on the
control.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mojtaba Faridzad" <mf*******@hotmail.com> wrote in message
news:Ou****************@TK2MSFTNGP09.phx.gbl...
Hi,

by Control.MousePosition we can find the mouse position. but how we can
set the mouse position?

thanks

Nov 16 '05 #2

P: n/a
Hi,
Check out the Cursor.Position property.

"Mojtaba Faridzad" <mf*******@hotmail.com> wrote in message
news:Ou**************@TK2MSFTNGP09.phx.gbl...
Hi,

by Control.MousePosition we can find the mouse position. but how we can set
the mouse position?

thanks

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.