How to position message box?

  • Thread starter Thread starter Altramagnus
  • Start date Start date
I assume your question is "How to display a MessageBox in C#?"
If yes, the answer is System.Windows.Forms.MessageBox.Show
 
Or.... Meybe your problem is... how to place a button on the form???
Marcus! Leave the man alone if you don't know the solution to the problem.

Sorry Altramagnus. I don't know the solution to your problem either. I think
that you have to somehow catch the handle of the MessageBox and than see what
you can do. Sorry again. I would search the web.
 
IMO you can't without win32 api tricks.

The simplest solution would be likely to display your own message box form
(using the same signature expect for the position)...
 
limited functionality can be achieved by
"public static DialogResult Show(IWin32Window, string);"

else
we have win32 FindWindow() and MoveWindow()/SetWindowPos()
 
Back
Top