int sifre = 123456;
string KuAd = "admin";
if(TextBox1.Text == sifre || TextBox2.Text == KuAd)
{
Form2 frm = new Form2();
frm.ShowDialog();
this.hide();
}
else
{
MessageBox.Show("Kullanıcı Adı ve ya Şifre yanlış tekrar deneyiniz",MessageBoxInformation.Info);
}