title: MenuItems Clicked
body: <p>I have <code>Right-click</code> menu items, that have <code>sub menu items</code>. What i would like to do is if one of the 3 sub menu items was clicked, it would open the same form but pass in different variables.
  Sub Menu Items;
  1- Manager
  2- Staff
  3- Customer</p>
  
  <p>Whichever one is picked it should pass the  Name be it Manager,Staff or Customer to the one form.</p>
  
  <p>Thanks</p>
  
  <p>EDIT 1:
  MAIN FORM</p>
  
  <pre><code>        if (e.Button == MouseButtons.Right)
          {
              ContextMenu m = new ContextMenu();
              MenuItem Message = new MenuItem("Message", Message_Click);
              Message.MenuItems.Add(new MenuItem("Manager", Manager_Click));
              Message.MenuItems.Add(new MenuItem("-"));
              Message.MenuItems.Add(new MenuItem("Staff", Staff_Click));
              Message.MenuItems.Add(new MenuItem("Customer", Customer_Click));
  
  
          }
  
  
   private void Manager_Click(object sender, EventArgs e)
      {
        FrmMessage frmMessage = new FrmMesage();
  
          frmMessage.ShowDialog();
         frmMessage.Dispose();
      }
  
      private void Staff_Click(object sender, EventArgs e)
      {
          FrmMessage frmMessage = new FrmMesage();
  
          frmMessage.ShowDialog();
         frmMessage.Dispose();
      }
  
      private void Customer_Click(object sender, EventArgs e)
      {
         FrmMessage frmMessage = new FrmMesage();
  
          frmMessage.ShowDialog();
         frmMessage.Dispose();
      }
  </code></pre>
  
  <p>MESSAGE FORM;</p>
  
  <pre><code> private void PopulateFields()
      {
  
          txtMessage.Text = Company.ManagerName.ToString();
          OR
          txtMessage.Text = Company.StaffName.ToString();
          OR 
          txtMessage.Text = Company.CustomerName.ToString();
  
  
      }
  </code></pre>
  
  <p>EDIT 2:</p>
  
  <p>I have  2 <code>forms</code>, The first form has a <code>datagrid</code>, on this datagrid there are the above <code>MenuItems</code>. On the second <code>form</code> their are 3 <code>TextBoxes</code>- <code>To</code>, <code>From</code>, <code>Message</code>whichever <code>MenuItem</code>- <code>Manager</code>, <code>Staff</code>, <code>Customer</code> is picked it will populate the <code>To</code> <code>TextBox</code> with the name of the Manager or Staff or Customer, but it does not do this. Does this my question clearer?</p>
  
  <p>Thanks</p>