
-----------------------------------
djlenny_3000
Tue Sep 13, 2005 12:11 pm

Opening a web page
-----------------------------------
i have a picture and i want someone to click on it and open a webpage how would i do that, i drew everything i need in my form and have the code ready but i dont know the command to open programs

-----------------------------------
rdrake
Tue Sep 13, 2005 2:52 pm


-----------------------------------
You open up programs like so:
shell ("whatever")You may be able to do something like:
shell ("iexplore.exe http://www.compsci.ca/")but that forces the user to use IE instead of their default browser.

The code found [url=http://www.freevbcode.com/ShowCode.asp?ID=12]here claims to be able to open up web pages with the default browser.

-----------------------------------
BlindApex
Sun Sep 25, 2005 3:08 pm


-----------------------------------
            
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

ShellExecute 0, vbNullString, "http://us.rd.yahoo.com/movies/trailers/1808649298/1808686701/?http://movies.yahoo.com/mv/mf/frame?theme=minfo&lid=qtv-700-p.1362730-0,wmv-56-p.1362723-148567,wmv-100-p.1362724-148567,wmv-300-p.1362725-148567,wmv-700-p.1362726-148567,qtv-56-p.1362727-0,qtv-100-p.1362728-0,qtv-300-p.1362729-0&id=1808649298&f=1808649298&mspid=1808686701&type=t", vbNullString, vbNullString, vbNormalFocus

to open a movie trailer for one of my projects
