1 Aralık 2016 Perşembe
C# ile Kullanıcıcı Girişi Yaparak Formlar Arası Geçiş
namespace Örnek4
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if(textBox1.Text=="admin"&& textBox2.Text=="1234")
{
Form2 yeni = new Form2();
yeni.Show(this);
this.Hide();
}
else
{
MessageBox.Show("Hatalı Giriş Yaptınız...");
}
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (checkBox1.Checked)
{
textBox2.PasswordChar = '*';
}
else
textBox2.PasswordChar = '\0';
}
}
}
Kaydol:
Kayıt Yorumları (Atom)

Hiç yorum yok:
Yorum Gönder