Get the OS Version (VB.NET)
Category:C#, VB.NET, ASP.NET
Author:Intelligent Solutions Inc.
Version Compatibility: Visual Basic.NET, ASP.NET
As explained and illustrated by http://support.microsoft.com/default.aspx?scid=kb%3ben-us%3b304289. Upgraded to detect Windows Server 2003 on 5/28/03 thanks to Robert M.
Instructions: Copy the declarations and code below and paste directly into your VB project.