Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Problem with Modal forms

For an application that I'm writing I run into the following problem:

When I open a form with Form1.ShowDialog(Me) command it will open like a normal showdialog window. However, when I do this a few times after each other (so I have 3 or 4 windows that are subsequent to each other), they close on any button.click event, even if there is now close or dispose statement.

Stranger is that for a second series of forms works fine, they close one after each other, only on the close statements?

Does anybody knows a solution for this?

I checked the event handlers, the cancelbutton property of the forms and in both series it looks the same.

By the way, I'm using VB.Net 2003

I hope you can help me

Nelis
[774 byte] By [Nelis] at [2007-11-11 6:42:49]