MessageBox.Show() - specify location of where box should pop up?

I'm calling a MessageBox, and would like it to show up in the center of the form that called it, rather than the center of the whole computer screen. Is there a way to do this?
[191 byte] By [elfenland] at [2007-12-24]
# 1
Normally no. You can create your own message box if you need that much.
boban.s at 2007-10-8 > top of Msdn Tech,Visual C#,Visual C# General...
# 2
that's correct. There unfortunately isn't a way of positioning the message box unless you create your own - simply just create a form, borderless and stick a label and a couple of buttons on it and make it act like a messagebox
ahmedilyas at 2007-10-8 > top of Msdn Tech,Visual C#,Visual C# General...
# 3

Nah, Defaulr Message Boxes doesno support this behavior, You need to create your own using Form setting some properties like BorderStyle = FixedSingle, ControlBox = false, put some Labels and buttons and Associate Dialog Results with those buttons.

Cheers ;-)

RizwanSharp at 2007-10-8 > top of Msdn Tech,Visual C#,Visual C# General...
# 4

The people that replied are correct.

You could create a form that looks exactly like the MessageBox and change the Location property.

wizkid1 at 2007-10-8 > top of Msdn Tech,Visual C#,Visual C# General...
# 5

It can be done with VB. So I'd imagine C# will also do it. Not "easy" tho...

http://vbnet.mvps.org/

If you do a search for "messagebox" at the above url.....the first item returned is the VB code to do it.

good luck.

cablehead at 2007-10-8 > top of Msdn Tech,Visual C#,Visual C# General...