Desktop Functions: Smart Device Functions:
|
Search Results for "WebBrowser" in [All]ConstantsGuid IID_WebBrowserApp = new Guid("0002DF05-0000-0000-C000-000000000046"); urlmonThis can be used in place of IWebBrowser2.ExecWB( Save-As, Dont-Prompt ) which will always prompt the user anyway. The function does not return until the transfer finishes or fails.
URLDownloadToFile(IE as SHDocVw.IWebBrowser2, urlStr, fileToStoreStr, 0, IntPtr.Zero ); Enums4: OLECMDID
!! From: http://stackoverflow.com/questions/738232/zoom-in-on-a-web-page-using-webbrowser-net-control wininet
//取当前webBrowser登录后的Cookie值
axWebBrowser1.Navigate("http://willstay.tripod.com", ref nullObject, ref nullObjStr, ref nullObjStr, ref nullObjStr); Interfaces
public interface DWebBrowserEvents2
Public Interface DWebBrowserEvents2 WindowClosing event is never fired when implemented with 2.0 .Net Fx. Workaround available at http://blogs.msdn.com/jpsanders/archive/2007/05/25/how-to-close-the-form-hosting-the-webbrowser-control-when-scripting-calls-window-close-in-the-net-framework-version-2-0.aspx> 9: ICustomDoc
10: IDeskBand
Protected Explorer As WebBrowserClass
'we get this interface and ask it to find WebBrowserApp
Dim guid As Guid = ExplorerGUIDs.IID_IWebBrowserApp
Explorer = DirectCast(Marshal.CreateWrapperOfType(TryCast(w, IWebBrowser), GetType(WebBrowserClass)), WebBrowserClass)
Public Shared ReadOnly IID_IWebBrowserApp As New Guid("{0002DF05-0000-0000-C000-000000000046}") 11: IDeskBand2
Protected Explorer As WebBrowserClass
'we get this interface and ask it to find WebBrowserApp
Dim guid As Guid = ExplorerGUIDs.IID_IWebBrowserApp
Explorer = DirectCast(Marshal.CreateWrapperOfType(TryCast(w, IWebBrowser), GetType(WebBrowserClass)), WebBrowserClass)
Public Shared ReadOnly IID_IWebBrowserApp As New Guid("{0002DF05-0000-0000-C000-000000000046}")
private Guid _IID_WebBrowserApp = new Guid("0002DF05-0000-0000-C000-000000000046");
object webBrowserObj = null;
SHDocVw.IWebBrowser webBrowser = null;
Guid IID_WebBrowserApp = _IID_WebBrowserApp;
Riid = typeof(SHDocVw.IWebBrowser).GUID;
webBrowserObj = null;
topServiceProvider.QueryService(ref IID_WebBrowserApp, ref Riid,
out webBrowserObj);
webBrowser = webBrowserObj as SHDocVw.IWebBrowser;
ISM.MapUrlToZone(webBrowser.LocationURL, out Zone, 0);
if (webBrowser != null)
Marshal.ReleaseComObject(webBrowser);
if (webBrowserObj != null)
Marshal.ReleaseComObject(webBrowserObj); 14: ITravelLogStg
SHDocVw.IWebBrowser2 axWebBrowser = null;
axWebBrowser = (SHDocVw.IWebBrowser2)webBrowser.ActiveXInstance;
IServiceProvider psp = axWebBrowser as IServiceProvider; 15: IWebBrowser
public interface IWebBrowser2 : IWebBrowserApp
public interface IWebBrowserApp : IWebBrowser
Public Interface IWebBrowser2 In C# definition IWebBrowser2 inherits from IWebBrowserApp and it inherits from IWebBrowser. This definition was generated by Interop when referencing SHDocVw. Original one-interface definition of IWebBrowser2 had issues with IE9 in some cases but this new definition works fine. 16: IWebBrowser2
public interface IWebBrowser2 : IWebBrowserApp
public interface IWebBrowserApp : IWebBrowser
public interface IWebBrowser
Public Interface IWebBrowser2 In C# definition IWebBrowser2 inherits from IWebBrowserApp and it inherits from IWebBrowser. This definition was generated by Interop when referencing SHDocVw. Original one-interface definition of IWebBrowser2 had issues with IE9 in some cases but this new definition works fine. 17: WebBrowser
|