Пример #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Form1 fr = new Form1();
     Application.Run(fr);
     if (fr.DialogResult == DialogResult.OK)
     {
         Form7 frm = new Form7();
         Application.Run(frm);
         Form2 frm2 = new Form2();
         Application.Run(frm2);
         //if(frm2.DialogResult == DialogResult.OK)
         //{
         //    Application.Restart();
         //}
     }
 }
Пример #2
0
 private void btt_7_Click(object sender, EventArgs e)
 {
     Form7 frm = new Form7();
     frm.Show();
 }