Results 1 to 5 of 5

Thread: MenuButton

Threaded View

  1. #1

    Thread Starter
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    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.

    Name:  MenuButton.jpg
Views: 2493
Size:  38.9 KB
    To use the example, unzip it, build the solution then you can view the form/run the program.
    Attached Files Attached Files
    Last edited by JuggaloBrotha; May 4th, 2010 at 09:33 AM.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width