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

            this.Hide();
            form2sec.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            KullaniciAdi = textBox1.Text;
            Sifre        = textBox2.Text;

            if (KullaniciAdi == "admin" && Sifre == "admin")
            {
                MessageBox.Show("Kullanıcı Girişi Başarılı");
                AnaSayfa form2 = new AnaSayfa();
                this.Hide();
                form2.Show();
            }
            else
            {
                MessageBox.Show("Kullanıcı Adı veya Şifre Hatalı!");
            }
        }