Easy way to open a browser in VB6?
Anyone know an easy/beginners way to open a browser in VB6 using simple code and no ocx or dlls? Must work 100%!
Someone pointed me to this link before:
http://www.planet-source-code.com/vb...29557&lngWId=1
But I couldn't understand where to put the code!
Many thanks, Gaz.
Re: Easy way to open a browser in VB6?
Moved from FAQ forum
Welcome to VBForums! :wave:
The code you linked to is very similar to this FAQ thread, which I think is worded better - and should answer your question.
Re: Easy way to open a browser in VB6?
http://www.vbforums.com/
You mean internet explorer:
VB Code:
'To open internet explorer
shell "C:\Program Files\Internet Explorer\iexplore.exe",vbMaximizedFocus
'To open internet explorer with url
shell "C:\Program Files\Internet Explorer\iexplore.exe http://vbforums.com",vbMaximizedFocus
To open a web page with its default browser without specifying the browser name or path use the link provided by SI
Re: Easy way to open a browser in VB6?
Re: Easy way to open a browser in VB6?
Bad juju hardcoding it for IE..... personaly I'd say use the ShellExecute, point to the URL you want to open, and let the user's default browser launch....
But that could be just me.
-tg