Exemplo n.º 1
0
 private void txtKullaniciAdi_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if ((kullaniciGirisi(txtKullaniciAdi.Text, txtKullaniciSifre.Text)) && textBox1.Text == lblDogrula.Text)
         {
             Ana_Sayfa syf = new Ana_Sayfa();
             syf.Show();
             this.Hide();
         }
         else
         {
             tut             = rnd.Next(10000, 99999);
             lblDogrula.Text = tut.ToString();
         }
     }
 }
Exemplo n.º 2
0
        private void Ogrenci_Sayfasi_FormClosed(object sender, FormClosedEventArgs e)
        {
            Ana_Sayfa sayfa = new Ana_Sayfa();

            sayfa.Show();
        }