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
Printable View
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
Echo Echo Echo Echo Echo :eek2:
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
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
VB Code:
System.Net.Dns.GetHostName()
Have you anything for the username?
Hi,
\HKEY_CURRENT_USER\ControlPanel\Owner
Pete
Many thanks !!