I’ve got a user control, consisting of a text box and two buttons.
the control is placed on a dialog box and when i tab over the dialog
controls, I experience proper behavior – first the text box is focused,
then one button, then the other.
However, when I set the user control as a target of a keyboard shortcut
set with “_” for a label (say press alt+r for “_Row count”) the user control
does not receive any focus. Tried implementing “gotkeyboardfocus” and setting
the focus to the textbox control there but it doesn’t work.
I’ve got a user control, consisting of a text box and two buttons. the
Share
A UserControl isn’t focusable by default so you have to turn it on in order to get this to work.
And then you can focus the desired TextBox inside of the UserControl when it recieves Focus