Form1 frm = new Form();
frm.ShowDialogResult;
if(this.DialogResult == DialogResult.OK)
{
Application.Run(new main());
}
this.DialogResult = DialogResult.OK;
this.Close();
Form1 frm = new Form();
frm.ShowDialogResult;
if(this.DialogResult == DialogResult.OK)
{
Application.Run(new main());
}
this.DialogResult = DialogResult.OK;
this.Close();