-
3 Attachment(s)
MenuButton
Here's a button that simply show it's ContextMenuStrip when clicked, very similar to the ToolStripDropDownButton. When the Button is clicked it stays 'pressed' until the menu is closed (either a menu item was selected or they clicked somewhere else).
Here's the added properties:- DrawArrow (Boolean) - Determines whether the arrow is showing or not.
- MenuDirection (MenuDirections) - Determines which direction off the control the ContextMenuStrip is shown. The arrow (if drawn) points in the direction the menu will display.
- SuppressRightClickMenu (Boolean) - Determines if the control naturally displays the ContextMenuStrip when the user right-clicks on it.
Methods added:- PerformClick - Same method as a normal button, the button will be "pressed" and the menu will show when this method is called.
Attachment 77819
To use the example, unzip it, build the solution then you can view the form/run the program.
-
Re: MenuButton
-
Re: MenuButton
I was just looking for something like this today :) Thank you! Going to try it out right now.
-
Re: MenuButton
-
Re: MenuButton
Thank you very much!!lovely control!