Displaying a MessageBox on top of all forms, setting location and/or color

后端 未结 7 1300
野性不改
野性不改 2021-01-06 02:03

I have two forms and I set one of the forms\' TopMost property to true. Somewhere, while the program runs, I show a MessageBox, but since TopMost is set to true

7条回答
  •  醉梦人生
    2021-01-06 02:45

    I use this.

    MessageBox.Show(
                    "message",
                    "title",
                    MessageBoxButtons.OK,
                    messageBoxIcon,
                    MessageBoxDefaultButton.Button1,
                    (MessageBoxOptions)0x40000); // this set TopMost
    

提交回复
热议问题