private void Form1_Load(object sender, EventArgs e) { var appName = Process.GetCurrentProcess().ProcessName + "WindowsFormsApplication2.exe"; var Key = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION", true); Key.SetValue(appName, 11000, RegistryValueKind.DWord); Key.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)