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.
To use the example, unzip it, build the solution then you can view the form/run the program.
Last edited by JuggaloBrotha; May 4th, 2010 at 09:33 AM.
Currently using VS 2015 Enterprise on Win10 Enterprise x64.