CodePudding user response:
Your previous post, I gave you a sample code,
CodePudding user response:
Didn't quite understand, you is to simulate keystrokes program, or to capture button?Simulate keystrokes can use SendKeys, capture button can be the main window KeyPreview is set to True, then check in the window Form_KeyPress events which according to the key