开发者

.net Label accelerator key event

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 cont开发者_如何学JAVArol 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?


Handle GotFocus event of the TextBox

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜