dcsimg
Results 1 to 5 of 5

Thread: MenuButton

  1. #1

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

    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: 1788
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.

  2. #2
    Stack Overflow mod​erator
    Join Date
    May 2008
    Location
    British Columbia, Canada
    Posts
    2,824

    Re: MenuButton

    Wow, great control!

  3. #3
    Hyperactive Member
    Join Date
    Jun 2014
    Posts
    353

    Re: MenuButton

    I was just looking for something like this today Thank you! Going to try it out right now.

  4. #4
    Hyperactive Member
    Join Date
    Jun 2014
    Posts
    353

    Re: MenuButton

    Double post

  5. #5
    Registered User
    Join Date
    Oct 2014
    Posts
    2

    Re: MenuButton

    Thank you very much!!lovely control!

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width