ToolStrip sometimes not responding to a mouse click

后端 未结 5 846
野的像风
野的像风 2020-12-06 17:49

I have a .NET 2.0 WinForms application with a ToolStrip on my main form. Sometimes, the ToolStrip icons don\'t respond to the first mouse click, so I have to click the icon

5条回答
  •  旧时难觅i
    2020-12-06 18:29

    If the application window hasn’t got the focus, you have to click the ToolStrip button twice. The first click sets the focus to the window, the second raises the click event. This is (unfortunately) the default behaviour and it’s by design. Microsoft Word shows the same behaviour (even though the .NET ToolStrip is not the same control).

提交回复
热议问题