tags:

views:

25

answers:

1

Hi

The popup that gets opened in my app always stays on top. It goes away when i minimize the app. But otherwise if the app opens a new window or if i switch to another program without minimizing the app, the popup stays on top. How do i hide the popup when the app loses focus?

Thanks

+1  A: 

It sounds like you need to set the owner/parent of the popup to the correct window by setting the Owner property to the window that created it.

Jackson Pope