Force MessageBox to be on top of application window in .net/WPF

后端 未结 3 1043
粉色の甜心
粉色の甜心 2020-12-30 03:03

In my WPF app, I sometimes being up a System.Windows.MessageBox. When it is initially displayed, it is shown on top of my main application window, as I would li

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-30 03:40

    This is a quick way of putting the Message Box on top of the application windows.

    MessageBox.Show(this ,"Output text"));

提交回复
热议问题