Can Anyone give me the Code To Generate a GUID
and Make it Appear in The Textbox1
Yes, ive tried google but, seriously nothing has worked >.<
Thanks[:
Works perfectly fine for me? Paste your exact code & I'll take a look.
This code will get the GUID value using a RegisteryKey
First we will import Microsoft.Win32(Put this above the class declaration):
Code:
Imports Microsoft.Win32
Now for the GUID Value code:
Code:
Dim regKey As RegistryKey
Dim GUID As String
regKey = Registry.LocalMachine.OpenSubKey("Software\Microsoft\Cryptography", True)
GUID = regKey.GetValue("MachineGuid")
regKey.Close()
The GUID will be stored in the variable "GUID".