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();
 }
Exemplo n.º 2
0
    private void Button1_Click(object sender, EventArgs e)
    {
        var formC = new FormC(_closingFormC);

        formC.Show();
    }
Exemplo n.º 3
0
 private void ClosingC(FormC formC)
 {
     MessageBox.Show("Closing C");
 }