Can I get the name of a device?

using vs2005 vb.net, is it programmatically possible to get the name of the device?

[87 byte] By [Anarchy] at [2008-2-7]
# 1

If you use the new Code Snippet for VB (Shortcut <ctrl> + k, <ctrl> +x) or from the Edit -> IntelliSense -> Insert Snippet...

You can find the following snippet under

Smart Devices > Application - Compiling, Resources, and Settings >

Get the Name of the Device.

And you can insert it to your form. The code looks like this.

Private Function GetDeviceName() As String

Return Dns.GetHostName()

End Function

Hope this helps.

David

DavidTSo at 2007-9-9 > top of Msdn Tech,Smart Device Development,Smart Devices VB and C# Projects...