Link to home
Start Free TrialLog in
Avatar of rbend
rbendFlag for United States of America

asked on

How to use the Internet Explorer control to bring in a Web Page

I have put the Internet Explorer Control on my form.
What code on a command button will bring a URL into tht control?
I do not want it to launch IE just have the page appear on my form.
Avatar of zhangjing
zhangjing

Thy this:

Private Sub Command1_Click()
    wb1.Navigate "www.ibm.com"
End Sub

wb1 is a Microsoft WebBrowser Control.
Avatar of rbend

ASKER

Sorry..doesn't work for me.
i have the IE Internet Control on my form.
I get the error: "object required" when I run your suggestion
rbend - lol, make sure the "wb1" is changed to the name of Microsoft WebBrowser Control.
You cant just paste code in, and expect VB to automatically change all the object names. 'zhangjing' did tell u what it meant.
Avatar of rbend

ASKER

I have figured it out in the meantime.
thanks anyway.
So please give me the score, I think it's fair. Thanks! Or you may divide it to two part, one to me, one to Lexien. :)
Avatar of rbend

ASKER

re-answer the question. I will give you the score

ASKER CERTIFIED SOLUTION
Avatar of zhangjing
zhangjing

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial