Is it possible to bind hotkeys to messagebox somehow?
Imagine a scenario, where a YES/NO messagebox is shown. So the idea is, user can select YES or NO button by hitting “y” or “n” on keyboard.
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
MessageBox already has that functionality.
Suppose your MessageBox is defined as:
Then if you press

YonN, you will get the appropriate result. Check the following screen shot