Kevin McNeish Blog

All things iOS, Kindle and .NET

Recent Posts



  • First books in my new book series, "iOS App Development for Non-Programmers" are now available! iBookStore: Amazon: Amazon:


Email Notifications


Converting a String to a GUID

To convert a string to a GUID, do the following:

In C#:

Guid MyGuid = new Guid(stringValue);

And in VB .NET:

Dim MyGuid As Guid = New Guid(stringValue)

Best Regards,

Kevin McNeish
Microsoft .NET MVP
President, Oak Leaf Enterprises, Inc.
Chief Architect of the MM .NET Application Framework


Mark Williams said:

Thanks, man. I've been searching everywhere for that!

# June 20, 2007 5:58 AM

TAMMON said:

thx so much

# July 18, 2011 5:40 AM
Leave a Comment





If you can't read this number refresh your screen
Enter the numbers above: