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