The sample demonstrates how to create a tabbed WebBrowser.
The "Open in new Tab" context command is disabled in WebBorwser by default, you can add a value *.exe=1 (* means the process name)to the key HKCU\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_TABBED_BROWSING. This menu will only take effect after the application is restarted. See http://msdn.microsoft.com/en-us/library/ms537636(VS.85).aspx
DWebBrowserEvents2 Interface designates an event sink interface that an application must implement to receive event notifications from the underlying ActiveX control, and there is a NewWindow3 Event in this interface. See http://msdn.microsoft.com/en-us/library/aa768283(VS.85).aspx
For detailed introduction of the sample, please read the documentation at http://code.msdn.microsoft.com/VBTabbedWebBrowser-f0c0a525
You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about sample updates. If it is the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on Microsoft Showcase, or read the introduction on our homepage http://1code.codeplex.com/.
No comments:
Post a Comment