Pages

c# code || to make a password form

After drag and drop "group box" , "2 button" , "2 text box" and "2 label"
It was organized as the image


we will write this code in button"enter " then run

if (textBox1.Text == "mohamed" && textBox2.Text == "1")
{
form2 airline=new form2();
airline.show();
this.hide();
}
else if (textBox1.Text != "mohamed" && textBox2.Text != "1")
{
MessageBox.Show("enter true name or password", "error");
}

// with my best: mohamed basha

0 comment:

إرسال تعليق

Link With in

Related Posts Plugin for WordPress, Blogger...