PC Review


Reply
Thread Tools Rate Thread

Center MessageBox C#

 
 
M. Roming
Guest
Posts: n/a
 
      15th Feb 2005
Hi together,

I am trying to center a MessageBox based on the form wich is calling the
Show method. This means:
After calling the Show() method I don't want the dialog window in the center
of the desktop instead
I want it in the center of my form.

I have already tried to pass the actual form object as a parameter to the
Show() function with
no better result (e.g. MessageBox.Show(this,"Test")) -> it's still in the
center of the desktop.

Is there anybody who can help me?

Gruß
Markus


 
Reply With Quote
 
 
 
 
james
Guest
Posts: n/a
 
      15th Feb 2005
You cannot. In order to do what you want you must create your own modal
panel and move its location in your custom code.


JIM


"M. Roming" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi together,
>
> I am trying to center a MessageBox based on the form wich is calling the
> Show method. This means:
> After calling the Show() method I don't want the dialog window in the
> center of the desktop instead
> I want it in the center of my form.
>
> I have already tried to pass the actual form object as a parameter to the
> Show() function with
> no better result (e.g. MessageBox.Show(this,"Test")) -> it's still in the
> center of the desktop.
>
> Is there anybody who can help me?
>
> Gruß
> Markus
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
center MessageBox in parent form John A Grandy Microsoft Dot NET Framework Forms 1 1st Aug 2008 01:39 AM
Windows Mobile Device Center - Media Center Pocket PC Sync Tom Huseby Windows Vista General Discussion 9 14th Mar 2007 10:56 PM
Center Messagebox Que Microsoft VB .NET 2 21st Sep 2006 11:36 PM
Center MessageBox C# alex_f_il@hotmail.com Microsoft C# .NET 0 24th Mar 2005 09:35 PM
Intercepting a specific messagebox (driver updated messagebox) Himanshu Windows XP Embedded 5 24th Nov 2004 08:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:11 PM.