|
-
Feb 17th, 2002, 11:51 PM
#1
Thread Starter
New Member
Using VB to call another application
I need to use VB to call another application using a button. Plesae help!!!!
-
Feb 17th, 2002, 11:58 PM
#2
When you say call, do you mean open? If so, there's no need for API.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Feb 18th, 2002, 02:45 AM
#3
Member
-
Feb 18th, 2002, 12:25 PM
#4
VB 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_SHOWNORMAL = 1
Private Sub Command1_Click()
ShellExecute Me.hwnd, vbNullString, "MyProg.Exe", vbNullString, "C:\Program Files\MyFolder\", SW_SHOWNORMAL
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|