S
Simanovsky
Hello,
I have a form with a control on it. I close the form in
the deactivate event handler. I also close the form in
control double-click event. In the form deactivate event
handler I ensure that the form is not closed twice using
my own flag.
In debug the form code seems to have the correct flow
(Dispose() method is called only once), but after my code
exits an exception is raised telling that my disposed
control is accessed.
What may be the possible reasons for that?
Thanks in advance,
Andrey.
I have a form with a control on it. I close the form in
the deactivate event handler. I also close the form in
control double-click event. In the form deactivate event
handler I ensure that the form is not closed twice using
my own flag.
In debug the form code seems to have the correct flow
(Dispose() method is called only once), but after my code
exits an exception is raised telling that my disposed
control is accessed.
What may be the possible reasons for that?
Thanks in advance,
Andrey.