Changing toolbar buttons on mouse over

ZooTV
06-29-2004, 08:48 AM
I was trying to use different images for a single button in a toolbar depending on whether the mouse was over the button or the button was clicked. For example (Windows pre-XP), the toolbar buttons on Internet explorer are all grey, except when you put the mouse over them, then they colorize themselves.

The only event that comes to my mind is the MouseHover event of the toolbar, but it's activated when the mouse is over any part of the toolbar, not a single button.

Any ideas?

Thanks,

Paszt
06-30-2004, 09:58 PM
What you need to do is determine which button the mouse is over and change that particular button.

You can download an example from CodeProject.com: A ToolBar control with special effects (http://www.codeproject.com/vb/net/ToolBarEx.asp)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum