How to position message box programatically using C# .NET?

Thanks.

Re: How to position message box? by Marcus

Marcus
Fri Aug 12 03:18:31 CDT 2005

I assume your question is "How to display a MessageBox in C#?"
If yes, the answer is System.Windows.Forms.MessageBox.Show


"Altramagnus" <altramagnus@hotmail.com> wrote in message
news:1123827720.149298.155530@g44g2000cwa.googlegroups.com...
> How to position message box programatically using C# .NET?
>
> Thanks.
>



Re: How to position message box? by VChenga

VChenga
Fri Aug 12 03:47:03 CDT 2005

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.

"Marcus Heege" wrote:

> I assume your question is "How to display a MessageBox in C#?"
> If yes, the answer is System.Windows.Forms.MessageBox.Show
>
>
> "Altramagnus" <altramagnus@hotmail.com> wrote in message
> news:1123827720.149298.155530@g44g2000cwa.googlegroups.com...
> > How to position message box programatically using C# .NET?
> >
> > Thanks.
> >
>
>
>

Re: How to position message box? by Patrice

Patrice
Fri Aug 12 05:20:07 CDT 2005

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)...

--
Patrice

"Altramagnus" <altramagnus@hotmail.com> a écrit dans le message de
news:1123827720.149298.155530@g44g2000cwa.googlegroups.com...
> How to position message box programatically using C# .NET?
>
> Thanks.
>



Re: How to position message box? by hB

hB
Sat Aug 13 08:16:52 CDT 2005

limited functionality can be achieved by
"public static DialogResult Show(IWin32Window, string);"

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

---
hB