borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Bring to top)Next Topic (i/o port) New Topic New Poll Post Reply
AndreaVB Forum : API : Using ShellExecute API
Poster Message
vbgen
Level: Moderator

Registered: 10-10-2002
Posts: 876

icon Using ShellExecute API

'declare it this way...
Const SW_SHOWNORMAL = 1

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

'..and use it this way
ShellExecute 0, vbNullString, strFilePath, vbNullString, strPath, SW_SHOWNORMAL


if there's something wrong, post back, okay?


____________________________
Been busy trying to take a second degree <--it's not working out...

17-01-2003 at 03:30 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : API : Using ShellExecute API
Previous Topic (Bring to top)Next Topic (i/o port) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder