The relevant information found online is as follows:
Add a reference to Microsoft Internet Controls 1.1,
The main code is as follows:
Shdocvw.shellwindows test = new shdocvw.shellwindowsclass ();
For (int i = 0; i { SHDOCVW.INTERNETEXPLORER IE = NULL; IE = TEST.ITEM (i) as shdocvw.interneTexplorer; Console.writeLine (IE.LocationURL); } If you encounter the frame of IE, you cannot see the web address directly from the address bar, which is valid, but only is valid for IE, which is invalid for Firefox. If you want to watch a movie, advertisement, etc., you can find or close the form accordingly. If you want to view the web source code, you can enter in the address bar of the IE browser: View-source: address to view. Example: view-source: http // community.9cbs.net / excert / forum.asp