Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active Internet Link

Status
Not open for further replies.

elias2212

Technical User
Joined
Jul 16, 2002
Messages
10
Location
US
I have a list box in a form that contains an internet url - like How do I activate a browser and link to that website on the internet and I would like to return to my form when the browser is closed?

Thanks
 
In the dblClick of the listbox put :
Code:
LOCAL lnRetval, lcFile, lcOperation
lcFile = this.Value
operations are available, for example Print
lcOperation = "Open"
DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
INTEGER handle,;
STRING @sFile,;
STRING @lp,;
STRING @dir,;
STRING @dir1,;
INTEGER ncmd
lnRetval = ShellExecute(0, lcOperation, lcFile, "", "", 1)
Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top