Şimdi Ara

giriş paneli

Daha Fazla
Bu Konudaki Kullanıcılar: Daha Az
4 Misafir - 4 Masaüstü
5 sn
2
Cevap
0
Favori
45
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 1
Giriş
Mesaj
  • using System;

    using System.Collections.Generic;

    using System.ComponentModel;

    using System.Data;

    using System.Drawing;

    using System.Linq;

    using System.Text;

    using System.Threading.Tasks;

    using System.Windows.Forms;


    namespace login

    {

      public partial class Form1 : Form

      {

        public Form1()

        {

          InitializeComponent();

        }


        private void button1_Click(object sender, EventArgs e)

        {

          if (textBox1.Text == "" && textBox2.Text == "")

          {

            MessageBox.Show("kullanıcı adı ve şifreyi boş bırakmalan");

          }

          else if (textBox1.Text == "") 

          {

            MessageBox.Show("kullanıcı adı boş geçilemez");

          }

          else if (textBox2.Text == "") 

          {

            MessageBox.Show("şifre boş geçilemez");

          }

          else if (textBox1.Text != "bilişim") 

          {

            MessageBox.Show("hatalı kullanıcı adı");

          }

          else if (textBox2.Text != "1234") 

          {

            MessageBox.Show("hatalı şifre");

          }

          else 

          {

            MessageBox.Show("giriş başarılı");

          }


        }


        private void checkBox1_CheckedChanged(object sender, EventArgs e)

        {

          if (checkBox1.Checked==true) 

          {

            textBox2.PasswordChar = '\0';

          }

          else 

          {

            textBox2.PasswordChar = '*';

          }

        }

      }

    }








  • 
Sayfa: 1
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.