Address a generated button for clickevent
<p>I have a class that creates panels with controls based on my database. It creates a panel with a button on each panel, per row in DB. How do I address one specific button to make a click event?</p>

<p>I'm a rookie, and maybe abit over my head, but you don't learn to swim in shallow water ;)
Any help appreciated!</p>

<pre><code>while (myDataReader.Read())
{
  i++;
  Oppdrag p1 = new Oppdrag();
  p1.Location = new Point (0, (i++) * 65);
  oppdragPanel.Controls.Add(p1);
  p1.makePanel();
}

class Oppdrag : Panel
{
  Button infoBtn = new Button();

  public void makePanel()
  {
    this.BackColor = Color.White;
    this.Height = 60;
    this.Dock = DockStyle.Top;
    this.Location = new Point(0, (iTeller) * 45);

    infoBtn.Location = new Point(860, 27);
    infoBtn.Name = "infoBtn";
    infoBtn.Size = new Size(139, 23);
    infoBtn.TabIndex = 18;
    infoBtn.Text = "Edit";
    infoBtn.UseVisualStyleBackColor = true;
  }
}
</code></pre>
