Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi folks,

this is probably very trivial, but does anybody know how to setup the standard toolbar so that when the mouse hovers a button on the toolbar that the button becomes focused.

 

Thanks for any help

Hamlet
Posted

Private Sub button1_hover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.MouseHover

Button1.Focus()

End Sub

Live as if you were to die tomorrow. Learn as if you were to live forever.
Gandhi
  • *Experts*
Posted
That will only work for regular Button controls, and not ToolBarButtons. To do it with ToolBarButtons, you will probably need to use the MouseMove event of the ToolBar, and the GetChildAtPoint() method of the Toolbar might work, thought I don't know since ToolbarButtons are just painted on and are not windows in themselves.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...