واسه دکمه 1 کد زیر
Form2 f2 = new Form2(); private void button1_Click(object sender, EventArgs e) { Button button1 = new Button(); button1.Left = 100; button1.Top = 50; button1.Text = "A"; Button button2 = new Button(); button2.Left = 100; button2.Top = 80; button2.Text = "B"; f2.Controls.Add(button1); f2.Controls.Add(button2); f2.ShowDialog(); }
و واسه دکمه 2 هم عین کد بالا رو بنویسین و فقط اسامی فرم ها و دکمه ها رو تغییر بدین و ...
2,337 سوال
2,871 پاسخ
3,725 دیدگاه
3,919 کاربر