[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!
Re: [2005] toolstripdropdownbutton - Displaying Items
Then you don't want a DropDownButton. You want a SplitButton.
Re: [2005] toolstripdropdownbutton - Displaying Items
Wow...I'm sorry I overlooked that! Thank you!
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.
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.