10-06-2002, 10:30 PM
.. hm can this be done in vb? if so .. how?
10-11-2002, 04:35 AM
You bet you can, just dump this into your form and then copy the code thats in the Command1_Click() sub into the sub for the right button on your form.
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 Sub OpenFile(sURL As String)
Dim nRetVal As Long
If sFile = "" Then Exit Sub
ShellExecute nRetVal, "open", sURL, "", "", 1
Private Sub Command1_Click()
10-12-2002, 12:07 AM
Thanks alot man:thumbsup:
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.