-
Toolbar Buttons
I want to create a toolbar with buttons that change image as the mouse pointer moves over them -- like the buttons in the Windows Explorer Toolbar. However, there doesn't seem to be a mouse enter or mouse leave event available for individual buttons in a .NET toolbar. You can use those events for the entire toolbar itself, but not the individual buttons. Can anybody either get me pointed in the right direction to creating one myself (I'm very new to .NET and all this inheritance stuff), or possibly finding one that someone else has created?
Thanks,
Kenbuddy
-
I tried to create my own toolbar button by creating a class that inherits System.Windows.Forms.ToolBarButton. I was hoping to tinker around with it and figure out how to get it to respond to mouse enter and mouse leave events, but no luck. My test application would not compile after changing the reference to System.Windows.Forms.ToolBarButton (in the Windows Form Designer generated code) section of my form to the new class name I created. The ToolBarButton I'm assuming is a child control to the Toolbar. Can't I just modify the ToolBarButton, or do I have to tinker with the Toolbar itself? There's gotta be an easy way to do this.
Thanks.
Kenbuddy