Question

Basic question, but I can't figure it out...I have a label with an accelerator key set (e.g. "&Add") and I want to give focus to a textbox when that shortcut, Alt+A, is pressed. What event does this correspond to? I tried the click event but that didn't do anything...

edit: found my own answer - it sets focus to the control that is next in the tab order. so I guess my revised question is, is there a way to catch this so I can have it select all the text in the textbox?

Was it helpful?

Solution

Handle GotFocus event of the TextBox

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top