Click to See Complete Forum and Search --> : [RESOLVED] CF Application version
Zakary
Jan 9th, 2006, 09:04 AM
Hi!
I'm at my beginning on a CF development for a Pocket PC. And I’m searching for a couple of thing, like a way to get the application version, and the current PC Username. Does anyone can help on this??
Thanks!
Zak
Zakary
Jan 9th, 2006, 02:53 PM
Echo Echo Echo Echo Echo :eek2:
petevick
Jan 10th, 2006, 12:20 PM
Version...
With System.Reflection.Assembly.GetExecutingAssembly.GetName().Version
lblVersion.Text += .Major.ToString() & "."
lblVersion.Text += .Minor.ToString() & "."
lblVersion.Text += .Build.ToString()
End With
For the PC name, it is in the Registry, HKLM\Ident\Name
You can get registry class (plus lots of other good stuff) from www.opennetcf.org
Pete
Zakary
Jan 10th, 2006, 12:33 PM
Thanks !
I'll look at the link as soon as he will be availabe, can't open it for now it is too slow
I've also find this for the PPc Name
System.Net.Dns.GetHostName()
Have you anything for the username?
petevick
Jan 11th, 2006, 01:23 AM
Hi,
\HKEY_CURRENT_USER\ControlPanel\Owner
Pete
Zakary
Jan 11th, 2006, 07:18 AM
Many thanks !!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.