Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the MessageBox location?

Tags:

c#

messagebox

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

MessageBox.Show("Hello");
like image 609
guy Avatar asked Mar 13 '11 11:03

guy


2 Answers

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

Solutions for your question:

like image 128
kyrylomyr Avatar answered Oct 20 '22 05:10

kyrylomyr


You will need to create a new form that inherits from the MessageBox form. That is the only way to access the position properties.

like image 28
Greg Avatar answered Oct 20 '22 07:10

Greg