HighTechTalks DotNet Forums  

create a guid

VB.net microsoft.public.dotnet.languages.vb


Discuss create a guid in the VB.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Mr. X.
 
Posts: n/a

Default create a guid - 01-20-2010 , 08:00 AM






Hello.
How can I in VB. NET 2005, I can auto-generate a GUID number ?

Thanks

Reply With Quote
  #2  
Old   
Patrice
 
Posts: n/a

Default Re: create a guid - 01-20-2010 , 08:09 AM






Hello,

Try :
http://msdn.microsoft.com/en-us/library/system.guid.newguid.aspx

The object browser can also help to discover available methods, classes,
structures etc...
--
Patrice


"Mr. X." <nospam (AT) nospam_please (DOT) com> a écrit dans le message de groupe de
discussion : ##GJIjdmKHA.4872 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
Hello.
How can I in VB. NET 2005, I can auto-generate a GUID number ?

Thanks


Reply With Quote
  #3  
Old   
Mr. X.
 
Posts: n/a

Default Re: create a guid - 01-20-2010 , 08:31 AM



I remember once I did that by some key combination, and not by running some
code of mine ... I don't remember how.

I want to put the guid identifcation number in the code.

Thanks

Reply With Quote
  #4  
Old   
Andrew Morton
 
Posts: n/a

Default Re: create a guid - 01-20-2010 , 08:36 AM



Mr. X. wrote:
Quote:
I remember once I did that by some key combination, and not by
running some code of mine ... I don't remember how.

I want to put the guid identifcation number in the code.
In VS2008, it's Tools->Create GUID. You may have assigned a shortcut key to
it.

Andrew

Reply With Quote
  #5  
Old   
zsessions@att.net
 
Posts: n/a

Default Re: create a guid - 01-20-2010 , 09:50 AM



On Jan 20, 9:00*am, "Mr. X." <nospam (AT) nospam_please (DOT) com> wrote:
Quote:
Hello.
How can I in VB. NET 2005, I can auto-generate a GUID number ?

Well, there's always createguid.com.

Reply With Quote
  #6  
Old   
Patrice
 
Posts: n/a

Default Re: create a guid - 01-20-2010 , 10:59 AM



Sorry, as this is a programming language group I didn't realized you were
looking for the appropriate menu option in VS...

--
Patrice

"Mr. X." <nospam (AT) nospam_please (DOT) com> a écrit dans le message de groupe de
discussion : uhkt60dmKHA.4312 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
I remember once I did that by some key combination, and not by running
some code of mine ... I don't remember how.

I want to put the guid identifcation number in the code.

Thanks


Reply With Quote
  #7  
Old   
Mr. X.
 
Posts: n/a

Default Re: create a guid - 01-25-2010 , 04:00 AM



I have VS 2005.
I didn't see any option : tools -> create guid.

Thanks

Reply With Quote
  #8  
Old   
Mr. X.
 
Posts: n/a

Default Re: create a guid - 01-25-2010 , 06:31 AM



O.K.
Found !!!
After I create a guid, I want to replace the guid ID in the VB.NET code.
Need an example, please.

Thanks

Reply With Quote
  #9  
Old   
Herfried K. Wagner [MVP]
 
Posts: n/a

Default Re: create a guid - 01-25-2010 , 08:13 AM



Am 25.01.2010 13:31, schrieb Mr. X.:
Quote:
Found !!!
After I create a guid, I want to replace the guid ID in the VB.NET code.
Need an example, please.
An example showing what?

You can replace the GUID in the source code using the find/replace commands.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.