I have a check box in my window, I want when the user clicks it works as if the user clicks on the ALT key on keyboard. How can I do this?
A:
I can think of three mechanisms which you could leverage.
1) Raise the KeyDown event for your control manually.
2) Perhaps look into the SendKeys class.
3) Or you could P/Invoke to SendInput.
Michael Baker
2010-07-07 08:22:11