Modal Window Problem

I have 2 windows. I open the second window from the first window with ShowDialog(). The problem is that when I minimize the first window (the second one is not closed yet) and after that I maximize the first window.., the second window disappeared and the first window is not accessible. I have to search it with Alt-Tab. I think that I miss something.

Thanks

[367 byte] By [CornelGav] at [2008-1-4]
# 1

How were you able to minimize the first window before closing the second window, which should be thread modal at this point.

Can you share your repro? Thanks.

EddieLi-MSFT at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 2
Yep, it's not about minimizing. I just activate other window (like IE). When I come back to my application... I see the second window in task bar but it's not activated even if it is a modal form.
CornelGav at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 3
How did you go back to your application? I noticed that if I click on the first window (non-dialog) while IE window is currently active, it gets brought to the foreground. Is this the problem you are seeing? Thanks.
EddieLi-MSFT at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 4
The scenario, you explain, seemed a bit strange for me, but try to set Owner property of child window to the parent window and tell if it'll help
TamirKhason at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 5
Yes, after I set the Owner it's working fine. Bizzare....
CornelGav at 2007-10-3 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified