Form not Closing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am having an issue with a windows form where the form (most of the time) will not close when mouse clicking the close X on the upper right. Debugging it shows that the closing event is called, but it never makes it to the closed event.

Any suggestions? Any help on how I might debug what is happening after the closing event? I saw a similar post yesterday, but it was not resolved.

Thanks.
 
Hi Brian,

It sounds like one well know bug in windows forms. Do you remove any
controls from the Controls collection.

If you do there is the problem.

Look at this link for solutions

http://www.google.ca/[email protected]&rnum=1

--

HTH
Stoitcho Goutsev (100) [C# MVP]


Brian said:
I am having an issue with a windows form where the form (most of the time)
will not close when mouse clicking the close X on the upper right.
Debugging it shows that the closing event is called, but it never makes it
to the closed event.
Any suggestions? Any help on how I might debug what is happening after
the closing event? I saw a similar post yesterday, but it was not resolved.
 
Thanks a bunch. That was the problem.

Stoitcho Goutsev (100) said:
Hi Brian,

It sounds like one well know bug in windows forms. Do you remove any
controls from the Controls collection.

If you do there is the problem.

Look at this link for solutions

http://www.google.ca/[email protected]&rnum=1

--

HTH
Stoitcho Goutsev (100) [C# MVP]


Brian said:
I am having an issue with a windows form where the form (most of the time)
will not close when mouse clicking the close X on the upper right.
Debugging it shows that the closing event is called, but it never makes it
to the closed event.
Any suggestions? Any help on how I might debug what is happening after
the closing event? I saw a similar post yesterday, but it was not resolved.
 
Back
Top