Home All Groups Group Topic Archive Search About
Author
21 Sep 2006 3:10 PM
Que
Hi

I have a form that catches an exception and throws a Messagebox

Is it possible to throw the message box to center in the form that
throws the exception

Like Centre in parent form or something like that

as it seems that you can only centre to the desktop

Thanks In Advance

Regards Que

Author
21 Sep 2006 4:07 PM
IdleBrain
Create your own form simillar to a messagebox and you can specify where
the form should appear.

Hope it helps!

Que wrote:
Show quoteHide quote
> Hi
>
> I have a form that catches an exception and throws a Messagebox
>
> Is it possible to throw the message box to center in the form that
> throws the exception
>
> Like Centre in parent form or something like that
>
> as it seems that you can only centre to the desktop
>
> Thanks In Advance
>
> Regards Que
Author
21 Sep 2006 10:36 PM
Herfried K. Wagner [MVP]
"IdleBrain" <indianmostwan***@yahoo.com> schrieb:
> Create your own form simillar to a messagebox and you can specify where
> the form should appear.

Implementing a message box with standard behavior
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=custommsgbox&lang=en>

..NET 2.0 has an additional 'SystemSounds' class.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>