I'm making a full programmed application using C# So instead of dropping controls I'm adding them dynamically using :
Button newButton = new Button();
newButton.Name = "";
newButton.Text = "Created Button";
newButton.Location = new Point(250, 70);
newButton.Size = new Size(75, 23);
The first issue I encountered is that if I want to make multiple buttons that I cant use the same button variable multiple times, so I came with the idea of randomizing the name of the button variable like :
Random rnd = new Random();
int num = rnd.Next();
Button button+num.ToString() = new button();
But this don't work as you can only implement a simple name for the variable