[VB6] Opening A Webpage Code

Status
Not open for further replies.
Re: [HELP]Opening A Webpage Code, VB6[HELP]

I think this is what your looking for?
Code:
'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)
 
Re: [HELP]Opening A Webpage Code, VB6[HELP]

Funny, I just looked up this snippet a few weeks ago for a little launcher I made.
VB is super easy, wubs it =D
I hate declaring variables though >.< PHP spoils me
 
Re: [HELP]Opening A Webpage Code, VB6[HELP]

It's abit obvious what he is coding through, maybe not to a Habbotard though.
 
Re: [HELP]Opening A Webpage Code, VB6[HELP]

Maybe,

Make an invisible internet browser object.
Code:
Private Sub cmdOne_Click()

 browser.navigate2 ("http://domain.com")
End Sub
 
Last edited by a moderator:
Hey mate, if you still need help, heres a code you could use! :)

Shell (explorer "www.domain.com")

I think that works, i've not used it for ages though, not so sure... :S
 
Status
Not open for further replies.
Back