public void FormC_Show() { FormC_DialogResult = DialogResult.None; formC = new FormC(); formC.Closed += new EventHandler(FormC_Closed); formC.CustomMessage = "This is FormC. When it closes, " + "it will call FormB's FormC_Closed event handler, " + "which will set the FormC_DialogResult property."; formC.Show(); }
private void Button1_Click(object sender, EventArgs e) { var formC = new FormC(_closingFormC); formC.Show(); }