How to pop MsgBox in front of all other windows?

L

lanem

I have a vb.net program that is doing some stuff with Word. I want to pop up
a MsgBox from time to time to get the user's interaction. When I do, it is
behind other windows and I have to find the window to see the MsgBox. How
can I make it pop in front of all the other windows? Thanks.
 
A

Anand.V.V.N

Hi Ianem

Are you automating word through VB.Net, in case you are I am not sure its a
good idea to popup a message box as it might slow down the application. But
then again I am not sure as I have not worked in vb.net.

Insted of messagebox why not try a dialogbox with systemmodal or something.

Are you calling the messagebox usign the modal option?

I am not quite sure if this is a correct respone, if its not I am sorry.

Hope it helped you.

Anand
 

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

Top