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