|
-
Sep 7th, 2010, 04:24 PM
#1
Thread Starter
Lively Member
[RESOLVED] open button menu in toolbar when click in ALL the button, not only in the small arrow
please see the image:

the menu in the button is opened with click in the small down arrow, but NOT if click in the button image.
please is there possible?
I've tested the tbar_ItemClicked event, but dont found any help.
-
Sep 7th, 2010, 04:53 PM
#2
Re: open button menu in toolbar when click in ALL the button, not only in the small a
Isn't that a ToolStripSplitButton? I think you should use a ToolStripDropdownButton instead if you want that behavior.
-
Sep 7th, 2010, 05:26 PM
#3
Re: open button menu in toolbar when click in ALL the button, not only in the small a
Look at the ShowDropDown method.
-
Sep 8th, 2010, 08:28 AM
#4
Thread Starter
Lively Member
Re: open button menu in toolbar when click in ALL the button, not only in the small a
 Originally Posted by NickThissen
Isn't that a ToolStripSplitButton? I think you should use a ToolStripDropdownButton instead if you want that behavior.
I don't understand why there are two as similar controls?
I've used Split and not the other for none reason.
-
Sep 8th, 2010, 08:59 AM
#5
Thread Starter
Lively Member
Re: open button menu in toolbar when click in ALL the button, not only in the small a
 Originally Posted by ForumAccount
Thanks, it's OK.
but this event is not accesible using e. or sender, thus you need to type the control name.
but works.
-
Sep 8th, 2010, 09:02 AM
#6
Re: [RESOLVED] open button menu in toolbar when click in ALL the button, not only in
Or you can cast sender to the actual control type then call the method, but using a split button like that isn't what you want anyways, I would use the ToolStripDropdownButton instead
-
Sep 8th, 2010, 11:26 AM
#7
Re: open button menu in toolbar when click in ALL the button, not only in the small a
 Originally Posted by Guerrero
I don't understand why there are two as similar controls?
I've used Split and not the other for none reason. 
Why wouldn't there be? They're similar but not exactly the same. A ToolStripSplitButton is intended as a button that, optionally, also has a number of 'child' buttons. A ToolStripDropDownButton only has child options and the 'parent' button is not intended to be used as a real button.
I could just as well ask you why there are similar controls such as a CheckBox and a RadioButton. They look similar but behave completely different. Similarly: a Button or a CheckBox with its Appearance set to Button. They look exactly the same but again behave completely different.
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
|