[RESOLVED] open button menu in toolbar when click in ALL the button, not only in the small arrow
please see the image:
http://farm5.static.flickr.com/4106/...af4f47e8b7.jpg
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.
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.
Re: open button menu in toolbar when click in ALL the button, not only in the small a
Look at the ShowDropDown method.
Re: open button menu in toolbar when click in ALL the button, not only in the small a
Quote:
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. :blush:
Re: open button menu in toolbar when click in ALL the button, not only in the small a
Quote:
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. :thumb:
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
Re: open button menu in toolbar when click in ALL the button, not only in the small a
Quote:
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. :blush:
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.