What’s the point of adding mnemonic on a label control in C#?
I have a label with the text "&SomeText".
What event is triggered when i press ALT+S (I’ve tried OnClick but it’s not fired)
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.
The point of adding a mnemonic is to increase the accessibility of your app by reducing the reliance of a user on the mouse.
If you have a control that has a tabindex directly after the label, then invoking the mnemonic will fire the “enter” event on the control. You will notice the focus shift to this control.
So, the mnemonic is not for the label itself, but actually for the control next to it (+1 in the tab order).