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.
 

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

Back
Top