maxima

If I run app from IDE it works fine. When I run it standalone from command string one particular dialog window hangs on 2nd (sometime 3d) time you closing it.

The sequence of events I could manage to trace so far:

- when it is OK

a. Cancel button clicked event

b. form Closed event

c. form HandleDestroyed event

d. ShowDialog returns to the parent

e. form Disposed method called

- when it hangs

a. Cancel button clicked event

b. form Closed event

-- here it hangs --

any idea will be appreciated (either solution or direction how to dig further as I am out of ideas).

Thank you



Re: Windows Forms General Form doesnt return after ShowDialog when runs standalone. C# 2.0

maxima

Found solution (although still have no idea what was happening)...

The form is FixedToolWindow, when it has ControlBox = false it hangs, when true - it doesnt... weird!