Is it possible to load a program (ie. Paint or MS Access) so that when it loads it's invisible??
Printable View
Is it possible to load a program (ie. Paint or MS Access) so that when it loads it's invisible??
yep, you can hide a window with showwindow api
Code:'in declarations
Private Declare Function FindWindow Lib "user32" _
Alias "FindWindowA" _
(ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Private Declare Function ShowWindow Lib _
"user32" (ByVal hwnd As Long, _
ByVal nCmdShow As Long) As Long
Const SW_HIDE = &H0
Const SW_SHOW = &H5
'in code
ShowWindow FindWindow(ClassnameOfTheApp, vbnullchar), SW_HIDE
Thanks kedaman on both accounts! :)