- เข้าสู่ระบบล่าสุด
- 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 calButton_Click(object sender, EventArgs e)
- {
- float income, expense, result;
- income = float.Parse(incomeTextBox.Text);
- expense = float.Parse(expenseTextBox.Text);
- result = income - expense;
- showLabel.Text = result.ToString();
- }
- private void incomeTextBox_KeyUp(object sender, KeyEventArgs e)
- {
- if (e.KeyCode == Keys.Enter)
- {
- expenseTextBox.Focus();
- }
- }
- private void expenseTextBox_KeyUp(object sender, KeyEventArgs e)
- {
- if (e.KeyCode == Keys.Enter)
- {
- calButton.Focus();
- }
- }
คัดลอกไปที่คลิปบอร์ด ผลรัน |
|