private void button1_Click(object sender, EventArgs e) { string _account = accountTextBox.Text; string _secret = secretTextBox.Text; if (_account == "" || _secret == "" || !reg.IsNatural_Number(accountTextBox.Text) || !reg.IsNatural_Number(secretTextBox.Text)) { MessageBox.Show("帳戶或密碼格式不符!!!"); } }