|
-
Feb 23rd, 2008, 07:47 PM
#1
Thread Starter
Hyperactive Member
[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!
-
Feb 24th, 2008, 07:07 AM
#2
Re: [2005] toolstripdropdownbutton - Displaying Items
Then you don't want a DropDownButton. You want a SplitButton.
-
Feb 24th, 2008, 07:05 PM
#3
Thread Starter
Hyperactive Member
Re: [2005] toolstripdropdownbutton - Displaying Items
Wow...I'm sorry I overlooked that! Thank you!
-
Feb 24th, 2008, 07:12 PM
#4
Thread Starter
Hyperactive Member
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.
-
Feb 24th, 2008, 09:05 PM
#5
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|