Opening a specific page in IE through VB

codingmasters
How do you open a specififc page in Internet Explorer through Visual Basic 6?

And just for you Ste, I've already tried this question on vbforums.com and no-one answered my post

Matthew G.

paul_one
I wonder why!! ;)

Erm, not 100% sure but I'm guessing you could launch internet explorer and pass it the web page as a command line parameter...

You could always have an internet shortcut right next to your program file and just launch it.... Thee are probably other ways...

It's probably dealt with somewhere - search for "proramming Visual Basic Internet Explorer" or instead of explorer put shortcut.... SIMPLE!

GameBoy
Not quite sure how to load up internet explorer, but seeing as you said you were good in VB, im sure you can figure that one out.

In this example im using a form called FrmBrowser which displays the page you want. If you want the code for the custom browser in VB just ask.


Private Sub mnuViewWebBrowser_Click()
Dim frmB As New frmBrowser
frmB.StartingAddress = "http://www.axeuk.com"
frmB.Show
End Sub


It uses a sub menu which im assuming that's what you'll be using anyway.

This topic is now closed. Topics are closed after 14 days of inactivity.

Support

Forums