What's the way to hide and unhide an external application, such as Outlook. I mean, I want the program to be running, but on the background and that could not get focus unless you unhide it. Am I clear?
Printable View
What's the way to hide and unhide an external application, such as Outlook. I mean, I want the program to be running, but on the background and that could not get focus unless you unhide it. Am I clear?
use the APIs FindWindow and SendMessage. Pass FindWindow the title of the window to hide, and then use SendMessage to send it the WM_HIDE message. (all this can be found in VB's API Viewer)
I didn't find the WM_Hide, but I found the:
However, it won't hide the app. Any ideas?Code:Private Const SW_HIDE = 0
Private Const SW_SHOW = 5
try SetWindowLong, with WM_VISIBLE, passing a value of False
Nevermind... I managed to do it with Kings' advice (ShowWindow API)