467,075 Members | 1,026 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,075 developers. It's quick & easy.

Center MessageBox C#

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
Nov 16 '05 #1
  • viewed: 18265
Share:
1 Reply
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
"M. Roming" <te**@test.de> wrote in message
news:37*************@individual.net...
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

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Rich Tasker | last post: by
8 posts views Thread by Dennis C. Drumm | last post: by
2 posts views Thread by Dennis C. Drumm | last post: by
8 posts views Thread by Saso Zagoranski | last post: by
4 posts views Thread by Tressa | last post: by
reply views Thread by alex_f_il@hotmail.com | last post: by
20 posts views Thread by Peter E. Granger | last post: by
2 posts views Thread by Que | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.