vb.net - how to check if user is running Vista or XP -


Hello how can I check that the user is running Vista or XP running their application? I need to do this if XP then msgbox "XP" and if Vista then msgbox "Vista" Andif

thanks

This is Microsoft's KB article that how to do it in C #. Translation in code VB.NET should not be very difficult:

There is an instant effort in conversion:

  As a slow OSINO system Operating System = System environment. OSVersion case osInfo.Version.Major case 5 'Windows 2000 or XP Case 6' Windows Vista End Select  

Comments