how to set wpf MessageBox.Owner to desktop window because SplashScreen closes MessageBox

前端 未结 7 921
有刺的猬
有刺的猬 2020-12-16 00:30

I am using the SplashScreen feature in WPF by setting a bitmap\'s Build Action to Splashscreen. Behind the splash screen, licensing informa

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-16 00:34

    The desktop window is never the correct parent, read this to know why:

    http://blogs.msdn.com/oldnewthing/archive/2004/02/24/79212.aspx

    Now the problem described in this post doesn't happen so much because MS worked around it, in this post you can see how:

    http://blogs.msdn.com/oldnewthing/archive/2006/11/02/931674.aspx

提交回复
热议问题