Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Homescreen home = new Homescreen();

            this.Hide();
            home.ShowDialog();
        }
Beispiel #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox2.Text == "user")
     {
         Homescreen homescreen = new Homescreen();
         this.Hide();
         homescreen.ShowDialog();
     }
     else
     {
         Form1 form = new Form1();
         form.ShowDialog();
     }
 }