instead of putting the command to execute query using button
how to make a keyboard command to execute it w/out clicking the button just keyboard shortcuts if possible a combination ctrl+key or shift+key
Use the form1_KeyDown event and use Select Case for the keydata pair (e.Modifiers and <other button>) and then just use code you want to execute when the combination is correct. KeyPreview will need to be set to true.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.