Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get IE version info in Winform? [duplicate]

I am developing an winform application in .NET framework 3.5, using C#.

In the application I need to display the IE version number, installed on the machine on which it runs. How can I do that, can anybody tell me?

like image 902
Bibhu Avatar asked Jun 01 '11 07:06

Bibhu


3 Answers

With Windows 8 you should use the "svcVersion" rather than the "Version" key. Otherwise it will report that IE 9 is installed instead of IE 10. Possibly also the case with Windows 7 if you have upgraded to IE10 (I have IE 9 installed so I can't say for sure).

like image 194
Rado Avatar answered Nov 15 '22 20:11

Rado


You can read the version from the registry:

var ieVersion = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\Internet Explorer").GetValue("Version");
like image 24
Alex Aza Avatar answered Nov 15 '22 21:11

Alex Aza


I think this may help:

private string GetIEVersion()
{
    string key = @"Software\Microsoft\Internet Explorer";
    RegistryKey dkey = Registry.LocalMachine.OpenSubKey(key, false);
    string data = dkey.GetValue("Version").ToString();
    return data;
}
like image 29
Anton Semenov Avatar answered Nov 15 '22 20:11

Anton Semenov