Exemple #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            Anasayfa a = new Anasayfa();

            this.Close();
            a.Show();
        }
Exemple #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            Anasayfa fm1 = new Anasayfa();

            this.Close();
            fm1.Show();
        }
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text != "" && textBox2.Text != "")
     {
         if (textBox1.Text == "admin" && textBox2.Text == "123")
         {
             Anasayfa a = new Anasayfa();
             this.Visible = false;
             a.Show();
         }
         else
         {
             MessageBox.Show("Girmiş olduğunuz Kullanıcı Adı veya Şifre yanlıştır. Lütfen tekrar deneyiniz.");
         }
     }
     else
     {
         MessageBox.Show("Lütfen Kullanıcı Adı veya Şifrenizi Giriniz...");
         this.Show();
     }
 }