Keep Messagebox.show() on top of other application using c#

后端 未结 3 2032
遇见更好的自我
遇见更好的自我 2020-12-08 13:08

How to keep a Messagebox.show() on top of other application using c# ??

3条回答
  •  醉酒成梦
    2020-12-08 14:02

    Another easy way to handle this:

    MessageBox.Show(new Form { TopMost = true }, "This is TopMost", "TopMost", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
    

提交回复
热议问题