Reputation: 3
Ok, so I'm writing a basic windows form application in VB.net as you do and need to be able to raise keyboard events based on data recieved from the serial port. I'm able to recieve the characters that I want (lets say a lower case c) and display them. Its also easy enough for me to find the keycode. What I want to do though is tell windows that key "c" has been pressed.
The application is paired to a bluetooth terminal, I wanted to have the experience of writing the code behind this myself rather than using another library although it seems I've failed already.
How would I go about doing this?
Upvotes: 0
Views: 912
Reputation: 10855
Take a look at SendKeys.Send.
If you are trying to send keeys across applications then try this one instead:
http://blog.aggregatedintelligence.com/2009/04/net-sending-keys-to-keyboard-buffer.html
Upvotes: 1