Esempio n. 1
0
        public IBrowser CreateBrowserInstance()
        {
            try
            {
                SetRegistry();
            }
            catch
            {
            }

            return(r_BrowserInstance ?? (r_BrowserInstance = new TridentBrowser()));
        }
        public IBrowser CreateBrowserInstance()
        {
            NativeMethods.UrlMon.CoInternetSetFeatureEnabled(NativeConstants.INTERNETFEATURELIST.FEATURE_DISABLE_NAVIGATION_SOUNDS, NativeEnums.SET_FEATURE.SET_FEATURE_ON_PROCESS, true);

            try
            {
                SetRegistry();
            }
            catch
            {
            }

            return r_BrowserInstance ?? (r_BrowserInstance = new TridentBrowser());
        }