user1318499
user1318499

Reputation: 1354

First click on a control only activates the window and doesn't operate the control

When my application's main window is not active and I click a control, the control doesn't get clicked and instead the window gets activated. That means it takes two clicks to do something if another application's window is active first.

Some controls already respond with one click, but not others. Specifically menus and tool bar buttons don't.

How can I change this to one click?

Upvotes: 0

Views: 1276

Answers (1)

Loathing
Loathing

Reputation: 5266

Here are two potential solutions:

1) Tool Strip Container Tools Strip Lost Focus and Double Click

2) http://www.codeproject.com/Questions/122798/WinForm-lost-focus-to-another-application-requires

The second solution seems to have better performance when the menu is closing. For whatever reason, the first solution tends to lag a little as the menu is closing.

Upvotes: 1

Related Questions