Hello
1. In Parent From:
ChildForm child = new ChildForm();
child.ShowDialog();
if (child.DialogResult == System.Windows.Forms.DialogResult.OK)
MessageBox.Show("Submit button is clicked on Child Form...");
2. In Child From, In Submit_Click event:
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
Or In Child Form, you can use this instead of Sumbit_Click event:
this.Submit.Click += new EventHandler((object sender, EventArgs e) =>
{
this.DialogResult = System.Windows.Forms.DialogResult.OK;
this.Close();
});