title: Control events trigger on other forms than my intended formC#
body: <p>I got a question about creating new forms in C#.
  I want to create multiple forms (MainPanel) as shown in the code below. This creates a new form and displays it.</p>
  <pre class="lang-cs prettyprint-override"><code>        private void Panel_MouseClick(object sender, MouseEventArgs e)
          {
              Form mp = new MainPanel();
              mp.Show();
          }
  </code></pre>
  <p>In the MainPanel form I have some events and controls set up. One of the is an exit button, if you press it, it closes the form</p>
  <pre class="lang-cs prettyprint-override"><code>    public partial class MainPanel : Form
      {
          private static MainPanel mainPanel;
          public MainPanel()
          {
              InitializeComponent();
              mainPanel = this;
  
              Panel panel = new Panel();
              panel.Name = &quot;ExitButton&quot;;
              panel.BackColor = ExitButtonColor;
              panel.BorderStyle = BorderStyle.None;
              panel.BackColor = Color.Transparent;
              panel.Width = 30;
              panel.Height = 30;
  
              panel.MouseClick += PanelExit_MouseClick;
              this.Controls.Add(panel);
          }
  
          private static void PanelExit_MouseClick(object sender, MouseEventArgs e)
          {
              mainPanel.Close();
          }
  }
  </code></pre>
  <p>When I call for <code>Form mp = new MainPanel();</code> and <code>.Show()</code> it, it works like intended and opens. The exit button works too.
  How ever, when I open a second one by creating a new <code>new MainPanel();</code> and then <code>.Show();</code> it. Then the exit button does not really work.</p>
  <p>That means I have 2 open MainPanel forms, both have their own exit button. If I click on the first form exit button, clicking it will close the second form.
  Clicking on the exit button on the second form will also close the second form. In other words, all the events on my first form are being fired and executed on my second form.</p>
  <p>Any idea why that happens or how to avoid it?</p>