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
febbraio 2025
lmmgvsd
272829303112
3456789
10111213141516
17181920212223
242526272812
3456789
Statistiche
  • Views Home Page: 21.460
  • Views Posts: 23.412
  • Views Gallerie: 2.798
  • 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