Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To bring messageboxes to the front

Status
Not open for further replies.

cdls

Programmer
Sep 7, 2001
15
0
0
AU
Hi,
I have an VB ActiveX Exe which gets called from an event in Outlook. This in turn invokes Microsoft word and does a lot of processes. Finally a messagebox comes from the ActiveX Exe to ask the user whether to delete the selected email or not. But the message box does not come to front and sits in the task bar. As a result when Outlook is activated the user cannot perform any operation as the messagebox is awaiting response from the user.

I tried using
AppActivate command and
Windows API functions like SetFOregrounfWIndow,Setfocus etc
before calling the MsgBox function.

But the msgbox always sits in the task bar.

Is there anyway to access the Task bar and invoke the command "BringToFront" as we do in Task Manager?

Or is it possible to bring the messagebox to the front of the screen?

Thanks for reading this and please let me know if there is any solution available.
 
U have to make a form who looks like an message box and make it always on top, it will works... ________
George, M
 
Thanks a lot for your help, I will try out and let you know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top