1

I have tried to research this all morning and found no solution that worked for me.

I have a ToolStrip, with several buttons on it. I am unable to get figure out how to select any of the buttons when using tab. I did find that it would systematically select the toolstrip but showed no visual indication of that. I only found this out by hitting the left arrow key each time I hit tab.

So my question is, how can I get one button on the toolstrip(Button1) to be selected (so that when I would hit enter, it would automatically use the button) by hitting the tab button.

I have turned the TabStop = True and the TabStop on the main UC is also set to True. I have assigned the ToolStrip a final Index number also. But still nothing gets highlight, but it's focused. I want the Button1 to be focused when I focus the ToolStrip.

Thanks for your help in advance!

4

2 回答 2

2
ToolStrip.Focus()

Button.Select()
于 2013-10-27T07:36:56.180 回答
-2

除了第一个 Button 或任何元素之外,您不能将焦点设置到 toolStrip 中的任何按钮。所以不要尝试。浪费时间……我已经试过了……那个。

于 2013-02-23T08:36:25.920 回答