- เข้าสู่ระบบล่าสุด
- 2012-5-14
- เวลาออนไลน์
- 81 ชั่วโมง
- จิตพิศัย
- 39
- Money
- 144
- สมัครสมาชิกเมื่อ
- 2009-12-20
- สิทธิ์ในการอ่าน
- 200
- โพสต์
- 42
- กระทู้
- 42
- สำคัญ
- 0
- เครดิต
- 39
- UID
- 1
  
- Money
- 144
- จิตพิศัย
- 39
- สมัครสมาชิกเมื่อ
- 2009-12-20
- เครดิต
- 39
- โพสต์
- 42
|
- private void button1_Click(object sender, EventArgs e)
- {
- string user, pwd;
- user = textBox1.Text;
- pwd = textBox2.Text;
- if ((user == "Toey") && (pwd == "1234"))
- {
- MessageBox.Show("ชื่อผู้ใช้คือ " + user + " รหัสผ่านคือ " + pwd, "แจ้งข้อมูลส่วนตัว", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }else
- {
- MessageBox.Show("ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง","กรุณาตรวจสอบอีกครั้ง",MessageBoxButtons.OK,MessageBoxIcon.Hand);
- }
- }
- private void button2_Click(object sender, EventArgs e)
- {
- textBox1.Text = "";
- textBox2.Text = "";
- }
- private void textBox1_KeyUp(object sender, KeyEventArgs e)
- {
- if (e.KeyCode == Keys.Enter)
- {
- textBox2.Focus();
- }
- }
- private void textBox2_KeyUp(object sender, KeyEventArgs e)
- {
- if (e.KeyCode == Keys.Enter)
- {
- button1.Focus();
- }
- }
คัดลอกไปที่คลิปบอร์ด ผลรัน |
|