I have a project that the user works two windows at once split so they are visible on the same screen.. Form1 is the main VBP project and works in junction with an OCX that controls a third party viewer. When the user clicks save on Form1 it has the focus. Then it calls the OCX which displays a msgbox which is under form1. The reverse happens when the user makes selections on the viewer. It has focus and when control passes back to form1 and displays a message it is under the viewer. How can I make the message box stay in front of both forms? I tried me.setfocus in the OCX and it doesn’t seem to support it. Someone pointed me at an API that is called SetWindowPos but it doesn’t seem to work. “Using MsgBox "test", vbMsgBoxSetForeground” seems to set it in front but I need to check for a yes no response.

Any suggestions?