Button to go to website 
Author Message
 Button to go to website

Option Explicit

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

Public Function HyperLink(ByVal URL As String) As Long
   HyperLink = ShellExecute(0&, vbNullString, URL, vbNullString,
vbNullString, vbNormalFocus)
End Function

Private Sub Command1_Click()
   Call HyperLink(" http://www.*-*-*.com/ ")
End Sub

> Is there a simple way to set up a button to launch the
> browser & load a URL?

> Thanks in advance!
> David

Tue, 03 May 2005 10:37:32 GMT  
 [ 1 post ] 

 Relevant Pages 

1. using vb to go to websites with internet explorer

2. going to websites with vb

3. using vb to go to websites

4. RDC Gone from website?

5. Leave Website Using A Button on an ASP Page

6. Add image to button/Websites for newbies?

7. ICP going going gone

8. Comment on QB websites/view websites by comments .-=??=-.

9. Freebie Website and a free link to your Website

10. Going to another page by pressing a button - 2

11. Going to another page by pressing a button

12. going back one page by clicking on a button in your browser


Powered by phpBB® Forum Software