Thema: c# Login Form

Einzelnen Beitrag anzeigen

McBubbel

Registriert seit: 17. Apr 2008
Ort: Rheine
1 Beiträge
 
Delphi 2007 Professional
 
#3

AW: c# Login Form

  Alt 17. Aug 2010, 09:14
Code:
namespace WindowsFormsApplication1
{
    static class Program
    {
        /// <summary>
        /// Der Haupteinstiegspunkt für die Anwendung.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Form2 f2 = new Form2();          
            DialogResult dr = f2.ShowDialog();
            if (dr == DialogResult.OK)
            {
                Application.Run(new Form1());
            }
        }
    }
}

Geändert von McBubbel (17. Aug 2010 um 09:17 Uhr)
  Mit Zitat antworten Zitat