How to get the browser version with vb.net 2003

vb.net 2003 (windows forms)

I am using  
  IEs As New SHDocVw.ShellWindows
  IE As SHDocVw.InternetExplorer

How do I determine which version of IE is being used here?  With the new IE7 beta being released it is important that I know if the user has upgraded.  

Thanks


gosonicAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Raj_KauCommented:
hi

look this code

http://support.microsoft.com/default.aspx?scid=kb;en-us;311281

 i think thats help you

Raj
0
fahimnxbCommented:
Dear gosonic,

Its very simple to write a code for getting browser information. All you need to do is using the HttpBrowserCapabilities class provided in .NET framework.

Following is the code sample.

Dim bc as HttpBrowserCapabilities
bc = Request.Browser
Response.Write("Type = " + bc.Type + "<br>");
Response.Write("Name = " + bc.Browser + "<br>");
Response.Write("Version = " + bc.Version + "<br>");

Let me know if you face any problems or if you require further information.

Regards,
Me
0
HeadspaceCommented:
...well, since you're obviously doing this locally, my vote would be to get the installed version of ie from the registry.  However, i found this example that also explains the use of shdocvw.dll (which is still valid for ie 6 versions).  The example is in c, but it should give you enough to go in in vb.net.  Let me know, however, if the link doesn't provide enough info and i'll work it out for you.  : )

http://www.codeproject.com/shell/detectie.asp

wil
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

gosonicAuthor Commented:
Headspace,

Yes I am doing it locally and I think your approach will work but I do need assistance in doing in VB.net I don't have any experience in c and don't know how to go about reading those vaules in VB.net - I will appreciate your help on this.
Thanks
0
HeadspaceCommented:
ok...I'll go with the registry option, since it's super easy to do:

'add the Microsoft.Win32 namespace:
Imports Microsoft.Win32

'and within the appropriate sub:
Dim regKey As RegistryKey
regKey = Registry.LocalMachine.OpenSubKey("Software\Microsoft\Internet Explorer", False)
Dim val as String = regKey.GetValue("Version")
regKey.Close()
'do something with val here

IE 5 and up also provide a 'build' value in the registry, which may or may not be important to your application.  I'm assuming that you likely won't be dealing with any versions older than 5 (since this is a .net app).  If you'd like an example using the shdocvw.dll, just let me know.

wil
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gosonicAuthor Commented:
This is good thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.