donnacha Posted October 15, 2003 Posted October 15, 2003 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 Quote Hamlet
techmanbd Posted October 15, 2003 Posted October 15, 2003 Private Sub button1_hover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.MouseHover Button1.Focus() End Sub Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi
*Experts* Volte Posted October 15, 2003 *Experts* Posted October 15, 2003 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.