Use ShellExecute or CreateProcess. Both of these let you set the initial show state of the window.
For example:
Code:Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long Private Const SW_HIDE = 0 ... Dim hInstance As Long hInstance = ShellExecute(Form1.hwnd, "Open", "C:\\Program Files\\WinAmp\\winamp.exe", "", "", SW_HIDE)



LinkBack URL
About LinkBacks
Reply With Quote


Bookmarks