codice:long N; public Multinomiale() { InitializeComponent(); } private void button5_Click(object sender, EventArgs e) { Form_capitolo_1 f = new Form_capitolo_1(); f.Show(); this.Visible = false; } private void button1_Click_1(object sender, EventArgs e) { bool Tn = Controllo_TextBox(textBox1.Text); if (Tn == false) { MessageBox.Show("'n' deve essere un numero intero maggiore di 0!"); textBox1.Text = ""; } else if (Tn == true) { N = Convert.ToInt32(textBox1.Text); for (int i = 2; i <= N+1; i++) { string textname = "textBox_f" + i; TextBox txtTemp = new TextBox(); txtTemp.Location = new System.Drawing.Point(50, 200 + 26 * i); txtTemp.Size = new System.Drawing.Size(200, 25); txtTemp.Name = textname; txtTemp.Width = 100; this.Controls.Add(txtTemp); } } } private void button2_Click(object sender, EventArgs e) { // in questo bottone vorrei passare le variabili e controllare ad esempio se in // textBox_f3 sono scritti solo numeri... }