Results 1 to 5 of 5

Thread: [RESOLVED] [2005] toolstripdropdownbutton - Displaying Items

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2003
    Posts
    406

    Resolved [RESOLVED] [2005] toolstripdropdownbutton - Displaying Items

    Hello everyone!

    I have several toolstripdropdownbuttons on a toolbar.

    When the main button is clicked it displays all the options below it as well as firing the button click event for the main button.

    I want to have the items in the dropdown only to display if the little arrow is clicked. If the user clicks on the button, i want that to fire.

    Is there a way to do this?

    Thanks!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] toolstripdropdownbutton - Displaying Items

    Then you don't want a DropDownButton. You want a SplitButton.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2003
    Posts
    406

    Re: [2005] toolstripdropdownbutton - Displaying Items

    Wow...I'm sorry I overlooked that! Thank you!

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2003
    Posts
    406

    Re: [RESOLVED] [2005] toolstripdropdownbutton - Displaying Items

    Hmm...the code i have setg for the top button (the one visible) is still triggering when i click on the arrow to display the other options.

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [RESOLVED] [2005] toolstripdropdownbutton - Displaying Items

    My guess is that you're handling the Click event. If you read the documentation for the ToolStripSplitButton class you'll see that that is not the event to handle if you want to know only when the button portion is clicked. When using new classes ALWAYS read the documentation first. When you have a question ALWAYS read the documentation first.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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