Open URL from VB 
Author Message
 Open URL from VB

Can anyone tell me how to open a URL from VB.  I don't want to include the
browser control, I just want to use the client's existing browser (NS or IE)
and send it to a specific url.

tia,

Don



Mon, 05 May 2003 03:00:00 GMT  
 Open URL from VB
Never Mind.  USed the shell32.dll

don


Quote:
> Can anyone tell me how to open a URL from VB.  I don't want to include the
> browser control, I just want to use the client's existing browser (NS or
IE)
> and send it to a specific url.

> tia,

> Don



Mon, 05 May 2003 03:00:00 GMT  
 Open URL from VB

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 Command1_Click()
   Dim r As Long
   r = ShellExecute(0, "open", "http://www.microsoft.com", 0, 0, 1)
End Sub



Tue, 06 May 2003 15:44:44 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Open URL from VB

2. Sending URL to Open Browser in VB

3. Opening a web browser at a specific url with vb

4. can I use command line to launch internet explorer and open one url each time

5. How open an url type with MS ACCESS ?

6. can I use command line to launch internet explorer and open one url each time

7. ? Open Web page/URL using VBA

8. can I use command line to launch internet explorer and open one url each time

9. ? Open Web page/URL using VBA

10. can I use command line to launch internet explorer and open one url each time

11. Open a URL in a new window

12. How to open a url in a new window

 

 
Powered by phpBB® Forum Software