Connecting Tech Pros Worldwide Forums | Help | Site Map

How to retrieve OS version

A.A. Fussy
Guest
 
Posts: n/a
#1: Jul 21 '05
How would I retrieve the Windows version in a vb.net program (I want it
displayed in a label)?



Chris Taylor
Guest
 
Posts: n/a
#2: Jul 21 '05

re: How to retrieve OS version


Hi,

Take a look at System.Environment.OSVersion

Hope this helps

Chris Taylor
"A.A. Fussy" <amarks@austarnet.com.au> wrote in message
news:OTtKIScyDHA.3744@TK2MSFTNGP11.phx.gbl...[color=blue]
> How would I retrieve the Windows version in a vb.net program (I want it
> displayed in a label)?
>
>[/color]


John Doe
Guest
 
Posts: n/a
#3: Jul 21 '05

re: How to retrieve OS version


System.Environment.OSVersion

Bryan Martin
spam@ahwayside.com
"A.A. Fussy" <amarks@austarnet.com.au> wrote in message
news:OTtKIScyDHA.3744@TK2MSFTNGP11.phx.gbl...[color=blue]
> How would I retrieve the Windows version in a vb.net program (I want it
> displayed in a label)?
>
>[/color]


A.A. Fussy
Guest
 
Posts: n/a
#4: Jul 21 '05

re: How to retrieve OS version


Thanks for the code-System.Environment.OSVersion was just what I need.

"Chris Taylor" <chris_taylor_za@hotmail.com> wrote in message
news:ez7g$xcyDHA.2508@TK2MSFTNGP12.phx.gbl...[color=blue]
> Hi,
>
> Take a look at System.Environment.OSVersion
>
> Hope this helps
>
> Chris Taylor
> "A.A. Fussy" <amarks@austarnet.com.au> wrote in message
> news:OTtKIScyDHA.3744@TK2MSFTNGP11.phx.gbl...[color=green]
> > How would I retrieve the Windows version in a vb.net program (I want[/color][/color]
it[color=blue][color=green]
> > displayed in a label)?
> >
> >[/color]
>
>[/color]


james
Guest
 
Posts: n/a
#5: Jul 21 '05

re: How to retrieve OS version


Just a quick question. I am running WindowsXP PRO and using:
System.Environment.OSVersion.ToString
returns, WindowsNT 5.1.2600 , yet, Windows System Properties in Control
Panel Shows Windows XP PRO !!
Curious huh!
james

"Chris Taylor" <chris_taylor_za@hotmail.com> wrote in message
news:ez7g$xcyDHA.2508@TK2MSFTNGP12.phx.gbl...[color=blue]
> Hi,
>
> Take a look at System.Environment.OSVersion
>
> Hope this helps
>
> Chris Taylor
> "A.A. Fussy" <amarks@austarnet.com.au> wrote in message
> news:OTtKIScyDHA.3744@TK2MSFTNGP11.phx.gbl...[color=green]
> > How would I retrieve the Windows version in a vb.net program (I want[/color][/color]
it[color=blue][color=green]
> > displayed in a label)?
> >
> >[/color]
>
>[/color]


Closed Thread