Код: Выделить всё
private void button1_Click(object sender, EventArgs e)
{
if (emailTextBox.Text == "abc" && passwordTextBox.Text == "password123")
{
MainForm f1 = new MainForm();
f1.Show();
}
else
{
MessageBox.Show("Invalid Email or Password.");
}
}
Код: Выделить всё
Form2 f2 = new Form2();
f2.Hide();
Подробнее здесь: https://stackoverflow.com/questions/631 ... sful-login
Мобильная версия