MessageBox location

  • Thread starter Thread starter George
  • Start date Start date
G

George

Is there a way to use MessageBox.Show() and center the
message box according to the parent window and not
according to the screen?

I know I could open a new dialog form like this, but I
was hoping to use the Message Box.

Thanks,
George
 
* "George said:
Is there a way to use MessageBox.Show() and center the
message box according to the parent window and not
according to the screen?

I know I could open a new dialog form like this, but I
was hoping to use the Message Box.

It can be done using a Win32 dialog hook, but I feel sorry, I don't have
a .NET sample for doing that. Positioning the message box is not
supported by .NET directly.
 
Back
Top