开发者

.net Label accelerator key event

开发者 https://www.devze.com 2022-12-10 21:10 出处:网络
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

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

精彩评论

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