sending mouse move message

this is probably the simplest of things to do.

I have a control in the middle of my form which I'd like to be able to move the mouse cursor w/ the keyboard when the mouse enters it. I'm watching OnKeyDown for the arrow keys, and need to move the mouse pointer. how exactly do I make the mouse move inside it can I send the WM_MOUSEMOVE message and if so who's handle do I use. I'm open to any way to make it happen. this is for a tool I'm using and dont want to spend a lot of time on it, and it doesnt need to be pretty.

thanks.


Answer this question

sending mouse move message

  • Phil Pownall

    Cursor.Position= New Point(0,0)



  • sending mouse move message