ContextMenuStrip & MainMenu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mitchenr
    New Member
    • Mar 2008
    • 2

    ContextMenuStrip & MainMenu

    Essentially I wanna create a Windows application. Add a ContextMenuStri p to the form with one command: BackColor. When this item is clicked, bring up the ColorDialog and after the color is selected in the ColorDialog, set the BackColor of the form to the chosen color.

    I also wanna add a main menu to the form with a File – Open selection. When clicked, have it bring up an OpenFile dialog. Set the Title and Filter properties (text files and all files). After a file is selected in the dialog, place the returned file name in a label on the form.

    All in C#
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Sounds like a good enough idea.
    What is the problem though?
    We're not here to do your work for your.

    Examples for how to do all of that can be found at http://www.msdn.com/

    Comment

    • mitchenr
      New Member
      • Mar 2008
      • 2

      #3
      My problem is adding a command to the contextmenustri p.

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Originally posted by mitchenr
        My problem is adding a command to the contextmenustri p.
        They're built the exact same way as mainmenu strips.
        Add an item to it then add the event handler.

        Comment

        Working...