then closing child form is working this command:
private void listView1_MouseDoubleClick(object sender, EventArgs e)
{
ListViewItem item = listView1.SelectedItems[0];
string s = item.SubItems[6].Text;
q = m;
CommercialOfferEditProperties ob = new CommercialOfferEditProperties(s, q);
ob.FormClosed += new FormClosedEventHandler(ob_FormClosed);
ob.Show(); //show child
}
void ob_FormClosed(object sender, FormClosedEventArgs e)
{
some action
}
But how to run action ob_FormClosed or run created new action, when in child form is button clicked?
CommercialOfferEditProperties)That way you will be able to notify the parent.
Example:
Parent form: