Basically in a C# Windows Form Application I am working on I have 2 buttons I press button1
and button2
.
How do I make it when I press 2 custom keys
simultaneously(eg. CTRL+L) the program does the steps coded for button1
? Keeping in mind that the window might not be active.
I have looked at this: Keypress To Simulate A Button Click in C# but I don't think this would work if the window isn't active, and its also only one button pressed not two.