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 2024
lmmgvsd
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789
Statistiche
  • Views Home Page: 20.399
  • Views Posts: 22.440
  • Views Gallerie: 2.555
  • 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