internal void ThreadProc()
        {
            string appName = "";

            try
            {
                appName = Path.GetFileName(System.Reflection.Assembly.GetEntryAssembly().Location);

                const string IE_EMULATION = @"Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION";

                using (var fbeKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(IE_EMULATION, true))
                {
                    fbeKey.SetValue(appName, 9000, Microsoft.Win32.RegistryValueKind.DWord);
                }
            }

            catch (Exception ex)
            {
                MessageBox.Show(appName + "\n" + ex.ToString(), "Unexpected error setting browser mode!");
            }

            window = new DynamoWindow();
            window.ShowDialog();
        }
示例#2
0
 private void btnUpdateBrowser_Click(object sender, RoutedEventArgs e)
 {
     browserWindow            = Windamow.window;
     browserWindow.ReportPage = tbHtmlInput.Text;
 }