none
C# PopUp menu

    Question

  • After this command:
    someMenu.Show(Button1, new System.Drawing.Point(20, 20));
    How can I get what menuitem was selected?

    Regards, dikan
    Friday, August 28, 2009 8:11 AM

Answers

  • You just displayed the context menu, nothing got selected yet by the user.  That happens later when she clicks on an item.  Double-click the items in the designer to add a Click event handler for them.

    Hans Passant.
    Friday, August 28, 2009 11:10 AM

All replies

  • You mean you want to do something after user clicks on some menu item ? Add Handler, perhaps ?

    post relevant code.



    Thanks

    My BlogMy FlickrMy Facebook
    Friday, August 28, 2009 10:11 AM
  • You just displayed the context menu, nothing got selected yet by the user.  That happens later when she clicks on an item.  Double-click the items in the designer to add a Click event handler for them.

    Hans Passant.
    Friday, August 28, 2009 11:10 AM