Hi,
Use the process class to find outlook express (msimn is
process name) and use setwindowslong to minimize it. Here is an example.
Api declares and constants
Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" _
(ByVal hwnd As IntPtr, ByVal nIndex As Integer, _
ByVal dwNewLong As Integer) As Integer
Const WS_MINIMIZE As Integer = &H20000000
Const GWL_STYLE As Integer = (-16)
How to find and minimize
For Each p As Process In Process.GetProcessesByName("msimn")
SetWindowLong(p.MainWindowHandle, GWL_STYLE, WS_MINIMIZE)
Next
Ken
-----------------------
Hi,
Does anyone know how to control another program that is running?
Eg: I would like to control the outlook express and tells it to minimize.
Thanks.