▼ กำลังโหลดข้อมูล... ▼
แสดงความคิดเห็น
คุณสามารถแสดงความคิดเห็นกับกระทู้นี้ได้ด้วยการเข้าสู่ระบบ
กระทู้ที่คุณอาจสนใจ
อ่านกระทู้อื่นที่พูดคุยเกี่ยวกับ
VB (Visual Basic)
Microsoft Access
Microsoft Visual Studio
VB.NET
การพัฒนา Desktop Application
กดเพิ่มแล้วหายได้ไง
Code ปุ่มเพิ่ม
STOCKINOUTBindingSource.AddNew()
TextBox1.Enabled = True
TextBox2.Enabled = True
TextBox3.Enabled = True
TextBox4.Enabled = True
TextBox5.Enabled = True
TextBox6.Enabled = True
Button1.Enabled = False
Button9.Enabled = True
Button2.Enabled = True
Button3.Enabled = False
Button4.Enabled = False
Button7.Enabled = False
Button8.Enabled = True
Code ปุ่มบันทึก
STOCKINOUTBindingSource.EndEdit()
STOCK_IN_OUTTableAdapter.Update(STOCKDataSet.STOCK_IN_OUT)
MessageBox.Show("บันทึกรายการเสร็จสิน", "Success", MessageBoxButtons.OK, MessageBoxIcon.Question)
Button9.Enabled = False
Button2.Enabled = False
Button7.Enabled = False
Button1.Enabled = True
Button3.Enabled = True
Button4.Enabled = True
Button8.Enabled = False
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
TextBox5.Clear()
TextBox6.Clear()
TextBox7.Clear()
TextBox1.Enabled = False
TextBox2.Enabled = False
TextBox3.Enabled = False
TextBox4.Enabled = False
TextBox5.Enabled = False
TextBox6.Enabled = False