title: How do I change the properties of a ContextMenuItem from inside an event handler
body: <p>I'm slowly getting the hang of <code>C#</code> and this question is probably a result of bad design but here goes.</p>
  
  <p>I have dynamic menus being generated thusly:</p>
  
  <pre><code>public Form1()
  {
      InitializeComponent();
      AddContextMenu();
  }
  public void AddContextMenu()
  {
      ContextMenuStrip mnuContextMenu = new ContextMenuStrip();
      mnuContextMenu.ItemClicked+=
                new ToolStripItemClickedEventHandler(mnuContextMenu_ItemClicked);
  
      this.ContextMenuStrip = mnuContextMenu;
  
      ToolStripMenuItem mnuItemEnable = new ToolStripMenuItem("Enable");
      mnuContextMenu.Items.Add(mnuItemEnable);
  }
  </code></pre>
  
  <p>and the event handler:</p>
  
  <pre><code>private void mnuContextMenu_ItemClicked (Object sender,
                                           ToolStripItemClickedEventArgs e)
  {
       //do stuff here
  }
  </code></pre>
  
  <p>How do I change <code>mnuContextMenu.Text</code> (or any other property) from inside the event handler? 
  VS says :</p>
  
  <blockquote>
    <p><em>mnuContextMenu does not exist in the
    current context</em></p>
  </blockquote>