I need more help trying to launch a browser from textbox!!
this is the code I have so far:
General declaration:
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
txtDist_Web textbox click event:
ShellExecute(Me.hwnd, "open", txtDist_Web.Text, "", 0, SW_SHOWNORMAL)
This is the error I get:
Function cal on left hand side of assignment must return Variant or Object
Any help????????
this is the code I have so far:
General declaration:
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
txtDist_Web textbox click event:
ShellExecute(Me.hwnd, "open", txtDist_Web.Text, "", 0, SW_SHOWNORMAL)
This is the error I get:
Function cal on left hand side of assignment must return Variant or Object
Any help????????