[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

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.
0
rbend
Asked:
rbend
  • 3
  • 3
1 Solution
 
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 new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now