Some questions about PB calls to Microsoft Web Browser Controls

Source: Internet
Author: User

The Microsoft Web Browser Control is a control that comes with the Windows system, and generally does not need to be installed separately, because of the needs of the work, the problems encountered in the use of a record for review.

To insert a control:

  The environment finds Microsoft Web controls for Pb12.0,insert-control-ole and inserts them into the desired container;

Using controls:

    Ole_web.object.navigate (Sle_1.text)//sle_1.text is a valid URL address, which is the simplest way to use it.

problems found during use

1.     when the URL address is invalid, you will get an error when getting the link.

  

Workaround:

2. New question: How can webbrowser not pop up the new IE window? Open Baidu, point Baidu map on a new IE window, this is too annoying, how to deal with it?

Solution: In the WebBrowser control, click Open NewWindow2 and write the following code in it
Cancel = True
Object. Navigate2 (object. DOCUMENT.ACTIVEELEMENT.HREF)
Is that all right?

Some questions about PB calls to Microsoft Web Browser Controls

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.