What i want to realize is to _simulate_ a pressed key programatically. For
example to create the possibility to toggle the ALT keystate using a
checkbox...
What i want to realize is to simulate a pressed key programatically.
For example to create the possibility to toggle the ALT keystate
using a checkbox...
What do you want your code to do? Why don't you respond to KeyDown and KeyUp
events to toggle the state of your application, then use a Timer to
repeatedly execute an action while the state shows the key is down. You might
want to use KeyPreview on a form so that you get all the keyboard events
before they are routed to individual controls.
HTH
Nigel Armstrong
Stephan Mader said:
hm ok, maybe my question can be misunterstood.
What i want to realize is to _simulate_ a pressed key programatically. For
example to create the possibility to toggle the ALT keystate using a
checkbox...
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.