static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); AllDetails.FillDetails(); Application.Run(new Form1()); }
private void button1_Click(object sender, EventArgs e) { AllDetails f = new AllDetails(); f.ShowDialog(); }