Center MessageBox C#

M

M. Roming

Hi together,

I am trying to center a MessageBox based on the form wich is calling the
Show method. This means:
After calling the Show() method I don't want the dialog window in the center
of the desktop instead
I want it in the center of my form.

I have already tried to pass the actual form object as a parameter to the
Show() function with
no better result (e.g. MessageBox.Show(this,"Test")) -> it's still in the
center of the desktop.

Is there anybody who can help me?

Gruß
Markus
 
J

james

You cannot. In order to do what you want you must create your own modal
panel and move its location in your custom code.


JIM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top