Unlock For Us

Advanced: How to Create/Generate a New GUID using Vb.Net, C# and Vb.Script


Globally Unique Identifier or GUID is a 128-bit integer (16 bytes) that is used by some software applications across all computers and networks in order to provide a reference number which is unique or to identify a particular component. Because of this there's a very low probability that any two or more component has the same value.

GUID is also used in Windows Registry.


Internet Explorer {871C5380-42A0-1069-A2EA-08002B30309D}

Network {F02C1A0D-BE21-4350-88B0-7367FC96EF3C}

Computer {20D04FE0-3AEA-1069-A2D8-08002B30309D}

Web Application: GUID Generator


Try here: http://www.windowsforus.com/guidgenerator/ 

Vb Script

Set TypeLib = CreateObject("Scriptlet.TypeLib")
NewGUID = TypeLib.Guid
WScript.Echo(left(NewGUID, len(NewGUID)-2))
Set TypeLib = Nothing


private void button1_Click(object sender, EventArgs e)
MessageBox.Show("GUID: {" + Guid.NewGuid().ToString()+ "}");

Visual Basic .Net 2008

Private Sub GenerateNewGUID()
Dim xGUID As String = System.Guid.NewGuid.ToString()
MessageBox.Show("{" & xGUID & "}")
End Sub

So, What's the use of this GUID to us? Sooner or later, As you study more and more about Registry Customizations... I'm sure you'll be reading this article again.

Sample Applications: Another Way to Add Icons to Desktop


Read more Articles: Windows Vista Tips, Tricks and Tweaks

1 Comment:

Anonymous said...

Superb post however , I was wondering if you could write a litte more
on this topic? I'd be very thankful if you could elaborate a little bit more. Many thanks!

Also visit my blog post - Order Acai Energize


© UnlockForUs 2007-2012| Blogger| Google.com | License Agreement