I would like my every new button that is created dynamically to be on top of the old button at a particular location. What should I do ? Bring To Front doesn't help me in getting to it. Below is my Code
int l=0;
public void CreateButton_Click(object sender, EventArgs e)
{
Button exitButton1 = new Button();
l++;
exitButton1.Text = "X("+l+")";
exitButton1.Top = 500;
exitButton1.Left = 10;
exitButton1.Width = 50;
exitButton1.Height = 30;
exitButton1.Click += (_, args) =>
{
exitButton1.Hide();
};
this.Controls.Add(exitButton1);
}