Results 1 to 3 of 3

Thread: [RESOLVED] GUID format

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2007
    Posts
    31

    Resolved [RESOLVED] GUID format

    Dim g1 As Guid
    g1 = Guid.NewGuid

    this code gives a guid that is formated like:

    xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx

    Is there code to tell a guid not to use hyphens?

  2. #2
    Frenzied Member stimbo's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,739

    Re: GUID format

    There's something about formatting it if I remember correctly
    vb Code:
    1. MessageBox.Show(Guid.NewGuid.ToString("N"))

    or maybe n
    Stim

    Free VB.NET Book Chapter
    Visual Basic 2005 Cookbook Sample Chapter

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2007
    Posts
    31

    Re: GUID format

    That did it!

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width