Click here to Skip to main content
15,879,613 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working with winforms and using web browser to open web page. Program works perfectly in windows 8, but in Windows 10, I am getting null value in register key value. I am using load event handler, this is the code:
C#
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();


        }

Maybe any ideas? Thanks in advance.
Posted
Comments
dan!sh 5-Jan-16 5:04am    
You can manually check the key exists at the location you are using in the code.
Member 12175492 5-Jan-16 5:06am    
how?
Richard MacCutchan 5-Jan-16 5:10am    
Use regedit
Member 12175492 5-Jan-16 5:10am    
checked everything it 100times, everything is there. I think I need to remove kb313272 update
Richard MacCutchan 5-Jan-16 5:34am    
Do not remove updates unless you are certain that will fix the issue.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900