423,849 Members | 1,901 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,849 IT Pros & Developers. It's quick & easy.

Messagebox appears behind form

P: n/a
I have a form (sizeable border, shows in taskbar, nothing unusual), which
is the main form of my application (called MainForm). During an operation
progress is shown in another form, that is shown from within the main form
with: pf.Show(this);

When I have to show a messagebox, the messagebox is shown behind the main
form. The messagebox is shown from within the main form. I tried both:
MessageBox.Show(this, ...);
and:
MessageBox.Show(pf, ...);

How can I get the messagebox to show on top of the main form (or even
above the progress form)?
Mar 22 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
VJ
maybe a .TopMost is true for a Form.. ?

VJ

"gewe" <ge**@hofmail.zzn.comwrote in message
news:pa****************************@hofmail.zzn.co m...
>I have a form (sizeable border, shows in taskbar, nothing unusual), which
is the main form of my application (called MainForm). During an operation
progress is shown in another form, that is shown from within the main form
with: pf.Show(this);

When I have to show a messagebox, the messagebox is shown behind the main
form. The messagebox is shown from within the main form. I tried both:
MessageBox.Show(this, ...);
and:
MessageBox.Show(pf, ...);

How can I get the messagebox to show on top of the main form (or even
above the progress form)?

Mar 22 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.