Messagebox appears behind form

  • Thread starter Thread starter gewe
  • Start date Start date
G

gewe

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top