static void Main() { Application.EnableVisualStyles(); //Application.SetCompatibleTextRenderingDefault(false); Form2 f2 = new Form2(); if (f2.ShowDialog() == DialogResult.OK) { Form1 f = new Form1(); DateTime data = DateTime.Now; f.ConA(f2.datausr, data.ToString()); //Application.Run(f); f.ShowDialog(); f2.DialogResult = DialogResult.None; } }