How to focus MessageBox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I used MessageBox.Show to pop up some message, however, the message box
somethime is behind other forms, I'd like to know how to focus/activate the
message box?

Thanks in advance
 
Li Pang said:
Hi,

I used MessageBox.Show to pop up some message, however, the message box
somethime is behind other forms, I'd like to know how to focus/activate
the
message box?

One of the overrides for MessageBox.Show has an owner argument, which is the
form the MessageBox will show in front of. Does that fix the problem?

Tim
IE share declining - does it make a difference?
http://www.itwriting.com/blog/?postid=106
 
Li Pang said:
I used MessageBox.Show to pop up some message, however, the message box
somethime is behind other forms, I'd like to know how to focus/activate
the
message box?

If you are using 'MsgBox', the messagebox will be shown in "application
modal" mode automatically.
 

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