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
luglio 2024
lmmgvsd
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234
Statistiche
  • Views Home Page: 20.704
  • Views Posts: 22.762
  • Views Gallerie: 2.619
  • 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