N
Nick
I am having a problem with raising the Form.Close and
Form.Closing event. This only occurs if I don't call
Form.Show() before a call to Form.Close(). Is this by
design?
MyForm f = new MyForm();
f.MdiParent = this;
if (f.SomeFunction() == false)
f.Close(); <--- Closed event does not fire
else
f.Show();
....
if (f!=null)
f.Close(); <--- Closed event fires
MyForm is derived from Form and subscribes to its
Form.Closed event.
I am running 1.1 of the framework.
Nick
Form.Closing event. This only occurs if I don't call
Form.Show() before a call to Form.Close(). Is this by
design?
MyForm f = new MyForm();
f.MdiParent = this;
if (f.SomeFunction() == false)
f.Close(); <--- Closed event does not fire
else
f.Show();
....
if (f!=null)
f.Close(); <--- Closed event fires
MyForm is derived from Form and subscribes to its
Form.Closed event.
I am running 1.1 of the framework.
Nick