Bonjour,
J'aimerai ouvrir une nouvelle fenetre à la suite d'un evenement clique sur un bouton. Voici mon code:
Pourquoi la ligne commantée ne sufit pas?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 private void button1_Click(object sender, EventArgs e) { //Application.Run(new Form2(this.textBox1.Text, this.textBox2.Text)); this.beta = new Form2(this.textBox1.Text, this.textBox2.Text); this.beta.Show(); MessageBox.Show("hey!"); }
Partager