Hi All,

I use this;

Code:
while (....)
{
    ....
    ....
    ....
    NextDialog.ShowDialog();
    ....
    ....
    ....
}
In the NextDialog I use a timer every timertick it does a test if something is valid.
the strange thing is, it return to the calling window after the tick (when the test code is done).
What do I miss, I do not use Close();

I changed the NextDialog from a Form to WPF Window, when it was Form code it worked fine.
Now it is WPF Window code it does not work as should.

Why I had to change to WPF?, I needed to use the NextDialog.Owner = this statement.
A WPF window can not own a Form (Compile Error)

So I need the timer to do his event over and over again without returning to the calling window.
As It worked fine in a Form Dialog.

Regards,

Ger