0

避免在 Windows 应用程序的 ToolStripCombobox 中关闭 Menu。当我使用向上/向下箭头键选择组合项目时,只要选择更改,下拉菜单就会自动关闭。如何避免自动关闭?

4

1 回答 1

1

I cannot reproduce this.

I created a form, added a ToolStrip control to it with some standard items, and then added a ToolStripComboBox to the end. Finally, I added a few items to the combo box for testing purposes.

When I run the application, and toggle the selected item in the combo box using the up/down arrow keys, the combo box does not close automatically. I can move the selection up and down the items in the combo box without ever triggering it to close until I press the Enter key.

What are we doing differently? Please update your question to explain the steps necessary to reproduce the behavior that you describe.

于 2011-07-26T10:06:02.037 回答