L
Lee Silver
Given a form f1 with a control c1.
The control's Click event contains:
Me.Hide
The proc that accesses the form contains:
f1.ShowDialog
Immediately after ShowDialog is invoked the form's Load event occurs, as
expected. Immediately prior to ShowDialog returning, the form's Closing event
fires, as expected, which I thought would be followed by the Closed event, but
it wasn't-- it never occurred. I tried to force it to occur by adding f1.Close,
f1.Dispose and f1=Nothing after the ShowDialog; all to no avail -- nothing I did
caused the Closed event to occur.
But adding:
Me.Close
after the Me.Hide in the Click event yielded the expected behavior.
This seems like the wrong solution. What am I doing wrong / misunderstanding?
--
// Lee Silver
// Information Concepts Inc.
// http://www.information-concepts.com
Facilitating the automated conversion of Data into Information
since 1982
The control's Click event contains:
Me.Hide
The proc that accesses the form contains:
f1.ShowDialog
Immediately after ShowDialog is invoked the form's Load event occurs, as
expected. Immediately prior to ShowDialog returning, the form's Closing event
fires, as expected, which I thought would be followed by the Closed event, but
it wasn't-- it never occurred. I tried to force it to occur by adding f1.Close,
f1.Dispose and f1=Nothing after the ShowDialog; all to no avail -- nothing I did
caused the Closed event to occur.
But adding:
Me.Close
after the Me.Hide in the Click event yielded the expected behavior.
This seems like the wrong solution. What am I doing wrong / misunderstanding?
--
// Lee Silver
// Information Concepts Inc.
// http://www.information-concepts.com
Facilitating the automated conversion of Data into Information
since 1982