Article ID: 311295 - Last Review: April 21, 2006 - Revision: 5.0 HOW TO: Automate Internet Explorer Within a Contained Visual Basic .NET UserControlThis article was previously published under Q311295 For a Microsoft Visual Basic 6.0 version of this
article, see
181075
(http://support.microsoft.com/kb/181075/EN-US/
)
. IN THIS TASKOn This PageSUMMARY This article contains a Microsoft Visual Basic .NET sample
file that demonstrates how to do the following:
Collapse this image ![]() For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base: 119591
(http://support.microsoft.com/kb/119591/EN-US/
)
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.
How to Run the SampleAfter you download the file, run the executable file (.exe) to extract the sample files. The .NET Framework must be installed on your computer to test the sample. The UserControl is embedded in an HTML document and accesses the HTML Document Object Model. It requires Full Trust permission to run. There are two ways to give the control Full Trust permission by using the .NET Framework Configuration Wizard (Mscorcfg.msc). One way is to set up the code group of the client computer and grant it Full Trust permissions for the site in which the control resides.For example, suppose you are running the sample from a computer named ServerName on a local intranet. To set the security permissions in that scenario, follow these steps:
Technical Notes
REFERENCES
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
311299
(http://support.microsoft.com/kb/311299/
)
PRB: Cannot Retrieve Top-Level IWebBrowser2 Interface from a .NET UserControl
For more information about how to develop Web-based solutions for Internet Explorer, browse to the following Microsoft Web sites: http://msdn.microsoft.com/ie
(http://msdn.microsoft.com/ie/)
| Article Translations
|

Back to the top
