- Joined
- May 2, 2007
- Messages
- 574
- Reaction score
- 3
Someone Post Hyperlink Code Here?
I Wanna Link A Commandbutton To A Webpage
USING VB6
I Wanna Link A Commandbutton To A Webpage
USING VB6
'Put this In the Declare section of the project
Public 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 Const SW_ShowNormal = 1
'put this where you can execute it, such as in a button click event
Dim iReturn As Long
iReturn = ShellExecute(frmMain.hwnd, "Open", "http://www.demote.com", vbNullString, vbNullString, SW_ShowNormal)
Private Sub cmdOne_Click()
browser.navigate2 ("http://domain.com")
End Sub