Guid.NewGuid Method creates a new instance of the Guid class.
Imports System Class Sample Public Shared Sub Main() Dim g As Guid g = Guid.NewGuid() Console.WriteLine(g) Console.WriteLine(Guid.NewGuid()) End Sub 'Main End Class 'Sample