How do I change the MessageBox location?

前端 未结 5 1015
醉梦人生
醉梦人生 2020-12-11 01:22

I need to change the message box location. I don\'t want it to be in the center of the page.

MessageBox.Show(\"Hello\");
5条回答
  •  温柔的废话
    2020-12-11 02:09

    Normally, you can't change startup location of standard message box.

    Solutions for your question:

    • Create your own custom message box. There is example of creation on CodeProject.
    • Complicated way using Windows Hook Procedure (WinAPI).

提交回复
热议问题