using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace fjaslkfj
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private Button[] buttons = new Button[50];
public int i = 0;
private void Button1_Click(object sender, EventArgs e)
{
buttons[i] = new Button();
this.SuspendLayout();
buttons[i].Location = new Point(76 * i, 25);
buttons[i].Size = new Size(75, 25);
buttons[i].Text = Convert.ToString(i + 1);
this.Controls.Add(buttons[i]);
this.ResumeLayout();
i++;
}
}
}
подскажите как доработать?