Kevin McNeish Blog

All things iOS, Kindle and .NET

Recent Posts

Tags

News

  • First books in my new book series, "iOS App Development for Non-Programmers" are now available! iBookStore: http://itunes.apple.com/us/book/book-1-diving-in-ios-app-development/id558788074?mt=11 Amazon: http://www.amazon.com/dp/B0097N8XBE Amazon: http://www.amazon.com/dp/B0099RQGMQ

Community

Email Notifications

Archives

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

Comments

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

(required) 

(required) 

(optional)
 

(required) 

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