コード例 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox2.Text == "0123" && textBox3.Text == "0123")
     {
         this.Hide();
         Homepage home = new Homepage();
         home.ShowDialog();
     }
     else
     {
         MessageBox.Show("Wrong Number or Password");
         textBox2.Text = string.Empty;
         textBox3.Text = string.Empty;
     }
 }