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
giugno 2025
lmmgvsd
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456
Statistiche
  • Views Home Page: 22.059
  • Views Posts: 23.973
  • Views Gallerie: 2.947
  • 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