TypeMismatch


Ora e Data
Sondaggio
Che sistema operativo utilizzate per lo sviluppo?

Windows 2008 Server
Windows 2003 Server
Windows XP Professional
Windows 2000

Creare Guid in diversi formati

Per creare Guid in diversi formati (come troviamo in Visual Studio 2005 -> Tools -> CreateGuid), basta usare l'overload della classe Guid che si trova all'interno del namespace System.
Per vedere i risulati, provate questo codice.

private void Form1_Load(object sender, EventArgs e)
{
    textBox1.Text = System.
Guid.NewGuid().ToString();
    textBox2.Text = System.
Guid.NewGuid().ToString("N");
    textBox3.Text = System.
Guid.NewGuid().ToString("D");
    textBox4.Text = System.
Guid.NewGuid().ToString("B");
    textBox5.Text = System.
Guid.NewGuid().ToString("P");
}

Categoria: .NET
giovedì, 07 giu 2007 Ore. 11.46
Calendario
maggio 2025
lmmgvsd
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678
Statistiche
  • Views Home Page: 21.966
  • Views Posts: 23.897
  • Views Gallerie: 2.920
  • n° Posts: 18
  • n° Commenti: 0
Archivio Posts
Anno 2009

Anno 2007
Mappa
Copyright © 2002-2007 - Blogs 2.0
dotNetHell.it | Home Page Blogs
ASP.NET 2.0 Windows 2003