Results 1 to 2 of 2

Thread: Toolbar Buttons

  1. #1

    Thread Starter
    Lively Member Kenbuddy's Avatar
    Join Date
    Jul 2002
    Location
    Cypress, TX
    Posts
    96

    Unhappy 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

  2. #2

    Thread Starter
    Lively Member Kenbuddy's Avatar
    Join Date
    Jul 2002
    Location
    Cypress, TX
    Posts
    96

    Question

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width