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.
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.