Hello,
I'm working on a project where I have in a form 5 to 10 buttons, everything manually added (from code) and I need to see which button was clicked on.
Button Remove = new Button();
Remove.Name = i.ToString();
Remove.Text = "Remove";
Remove.Click += new EventHandler(Remove_Clicked());
i++;
void Remove_Clicked(object sender, EventArgs e)
{
}
I named the buttons in numbers (i) so i can get them easier.
So is there a way to check which button was pressed?
Thanks