title: I can not go to "EventHandler" with double click
body: <p>When <code>btnAsset</code> is double-clicked, it should go to <code>allButton_Click</code>.
  But it only goes in one click. how can I do that?</p>
  
  <pre><code>public void Add(MainForm frm)
  {
      this.form1 = frm;
          for (int i = 0; i &lt; 10; i++)
          {
              btnAsset[i] = new Button();
              btnAsset[i].Tag = i;
              btnAsset[i].Name = "Asset-" + i.ToString();
              btnAsset[i].Width = 150;
              btnAsset[i].Height = 120;
              btnAsset[i].Visible = true;
              btnAsset[i].BackColor = Color.GreenYellow;
  
              form1.flowLayoutVideo.Controls.Add(btnAsset[i]);
  
             btnAsset[i].DoubleClick += new EventHandler(allButton_Click);
          }
    }
  </code></pre>
  
  <p>should go here when double clicked</p>
  
  <pre><code>void allButton_Click(object sender, EventArgs e)
  {
      Button p = sender as Button;
      if (p != null)
      {
          int i = (int)p.Tag;
          MessageBox.Show((i + 1).ToString() + ". seçildi");
      }
  }
  </code></pre>