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.
rbendAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zhangjingCommented:
Thy this:

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

wb1 is a Microsoft WebBrowser Control.
0
rbendAuthor Commented:
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
0
LeXienCommented:
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.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

rbendAuthor Commented:
I have figured it out in the meantime.
thanks anyway.
0
zhangjingCommented:
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. :)
0
rbendAuthor Commented:
re-answer the question. I will give you the score

0
zhangjingCommented:
Thy this:

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

wb1 is a Microsoft WebBrowser Control.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.