Community
2017..
Using the mouse enter and leave events works for me in 2017. MouseEnter to set the focus on the toolstrips of a palette (fixed two clicks on the first button click) and the MouseLeave to set focus the normal way, without the button pulling the focus back..
Snippet
Private Sub ToolStrip1_MouseEnter(sender As Object, e As EventArgs) Handles ToolStrip1.MouseEnter
ToolStrip1.Focus()
End Sub
Private Clamps_Clicked As Boolean = False
Private Sub Clamps_Click(sender As Object, e As EventArgs) Handles Clamps.Click Clamps_Clicked = True End Sub
Private Sub Clamps_MouseEnter(sender As Object, e As EventArgs) Handles Clamps.MouseEnter Clamps_Clicked = False End Sub
Private Sub Clamps_MouseLeave(sender As Object, e As EventArgs) Handles Clamps.MouseLeave If Clamps_Clicked Then 'PaletteFocus.ActivateEditor() 'txt Tony Active.Document.Window.Focus() myApp.Commands.SelectStuff() End If End Sub