I have a toolstrip in my form. When I press enter I want it to press a button in the toolstrip. I want the key pressed to be enter.
Thank you,
Adam
Printable View
I have a toolstrip in my form. When I press enter I want it to press a button in the toolstrip. I want the key pressed to be enter.
Thank you,
Adam
Set the form's KeyPreview property to True, handle the KeyDown event, test e.KeyCode for the Enter key, set e.SuppressKeyPress to True and call the ToolStripButton's PerformClick method.
I resolved it.
Thank you,
Adam