Center MessageBox C#

  • Thread starter Thread starter M. Roming
  • Start date Start date
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
 
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
 
Back
Top