If you are going to be sending those clicks and key presses from within the
main form's code,
all you have to to is call the
OnClick() and OnKeyPress() methods of the form.
Otherwise, you will have to use interop to call SendMessage() from the Win
API
HTH
"Wilfried Mestdagh" <Wi**************@discussions.microsoft.com> wrote in
message news:41**********************************@microsof t.com...
Hi,
How do I send a mouse click and keyboard key's to my main form in code ?
--
rgds, Wilfried
http://www.mestdagh.biz