Serial Number In Datagridview Vb Net Array Average ratng: 4,1/5 5199 reviews
P: n/a
In my applicattion, I used an encrpted string based on a number of features
of the user machine and my program. I created an encryption program to
create the encrypted string, and within the user program is the same
encryption function to check that the two strings are equal. The function I
used is below:-
Imports System.Text
Imports System.Security.Cryptography
Module modEncrypt
Public Function HashData(ByVal s As String) As String
'Convert the string to a byte array
Dim bytDataToHash As Byte() = _
(New UnicodeEncoding()).GetBytes(s)
'Compute the MD5 hash algorithm
Dim bytHashValue As Byte() = _
New MD5CryptoServiceProvider().ComputeHash(bytDataToHa sh)
Return BitConverter.ToString(bytHashValue)
End Function
End Module
Best wishes
Paul Bromley
'Arne Beruldsen' <Ar***********@discussions.microsoft.comwrote in message
news:55**********************************@microsof t.com..
>I have a windows app using vb.net 2005.
I would like to create a serial number based on a couple of
characteristics
of the customers computer (computer name, HD number.etc). I don't need
anything complicated just a way to generate a 16 character number.
Is there an easy way to do this..?
Thanks

Gets an array of serial port names for the current computer. An array of serial port names for the current computer. The serial port names could not be queried. The following code example uses the GetPortNames method to display serial port names to the console. ' Insert this code into a new VB Console application project, and set the ' startup.

-->

Definition

Gets an array of serial port names for the current computer.

Returns

An array of serial port names for the current computer.

Exceptions

The serial port names could not be queried.

Examples

The following code example uses the GetPortNames method to display serial port names to the console.

Remarks

The order of port names returned from GetPortNames is not specified.

When a Glade strikes something, it emits a sound. Scientists have discovered how to turn atmospheric matter into energy, and a means of harnessing this energy-G-Cons-has allowed for the conversion of this power into a weapon called a 'Glade.' Nds roms english patch. Fighters and entertainers have realized the potential of Grapping, as the music generated by the Glades clashing in combat provides an experience that can't be matched in any other sport. In the world of Draglade, Grapping has become the world's premier spectator sport. In this world overcome by Grapping fever, four young indie Grappers-Hibito, Guy, Kyle, and Daichi-each strive to reach the rank of Major Grapper.

Use the GetPortNames method to query the current computer for a list of valid serial port names. For example, you can use this method to determine whether COM1 and COM2 are valid serial ports for the current computer.

The port names are obtained from the system registry (for example, HKEY_LOCAL_MACHINEHARDWAREDEVICEMAPSERIALCOMM). If the registry contains stale or otherwise incorrect data then the GetPortNames method will return incorrect data.

Applies to