Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Winword version and Browser version ?
 

Winword version and Browser version ?

Is it possible to get the installed winword version as well as the ie version in winforms ???


Regards,
Rahul.
.Net Noobler  Wednesday, October 07, 2009 8:54 AM
You can read HKEY_CLASSES_ROOT\word.application\curver registry key's default value for word version
You can read HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer registry key's Version value for ie version.

Here is the sample

            string word = Registry.ClassesRoot.OpenSubKey(@"word.application\curver").GetValue("").ToString();
            Console.WriteLine("Word Version:" + word);
            string ie=Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\Internet Explorer").GetValue("Version").ToString();
            Console.WriteLine("IE Version : " + ie);
Tamer Oz  Wednesday, October 07, 2009 10:49 AM
You can read HKEY_CLASSES_ROOT\word.application\curver registry key's default value for word version
You can read HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer registry key's Version value for ie version.

Here is the sample

            string word = Registry.ClassesRoot.OpenSubKey(@"word.application\curver").GetValue("").ToString();
            Console.WriteLine("Word Version:" + word);
            string ie=Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\Internet Explorer").GetValue("Version").ToString();
            Console.WriteLine("IE Version : " + ie);
Tamer Oz  Wednesday, October 07, 2009 10:49 AM

You can use google to search for other answers

Custom Search

More Threads

• How to manipulate cells in a TableLayoutPanel
• What can cause SmartTags not to be displayed ?
• OCR Component
• custom calendar control
• How to set readonly for property with return value of collection.
• [C#]Adding files to CheckedListBox
• IWindowsFormsEditorService designing a checkbox group and radio buttons
• openFileDialog (help with Declaratoin) Thxs
• Looking for controls similiar to Picasa interface...
• How to use OLE in Vb.Net to edit Image?