41
General Programming / Re: ช่วยดูโค้ด vb 2010 หน่อยครับ ว่าผิดตรงไหน
« เมื่อ: 21 มีนาคม 11, 15:42:30 » If rdmember.Checked = "False" Then
If txtcodemember.Text = "" Then MessageBox.Show("กรุณาป้อนรหัสลูกค้า", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
If txtnamemember.Text = "" Then MessageBox.Show("กรุณาป้อนชื่อลูกค้า", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
If txtlastnamemember.Text = "" Then MessageBox.Show("กรุณาป้อนนามสกุลูกค้า", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
If txtphonemember.Text = "" Then MessageBox.Show("กรุณาป้อนเบอร์โทรศัพท์ลูกค้า", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
If (Len(txtphonemember.Text) <> 10) Then MessageBox.Show("คุณกรอกหมายเลขโทรศัพท์ยังไม่ครับ", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
Else
If txtcode.Text = "" Then MessageBox.Show("กรุณาป้อนรหัสสินค้า", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
If txtname.Text = "" Then MessageBox.Show("กรุณาป้อนชื่อสินค้า", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
If numcheck.Text = "" Then MessageBox.Show("กรุณาป้อนจำนวนสินค้า", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
If txtsell.Text = "" Then MessageBox.Show("กรุณาป้อนราคาสินค้า", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
ProgressBar.Step = 21
ProgressBar.Value = 0
btsave.Enabled = False
Time2.Enabled = True
Cursor = Cursors.WaitCursor
If txtcodemember.Text = "" Then MessageBox.Show("กรุณาป้อนรหัสลูกค้า", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
If txtnamemember.Text = "" Then MessageBox.Show("กรุณาป้อนชื่อลูกค้า", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
If txtlastnamemember.Text = "" Then MessageBox.Show("กรุณาป้อนนามสกุลูกค้า", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
If txtphonemember.Text = "" Then MessageBox.Show("กรุณาป้อนเบอร์โทรศัพท์ลูกค้า", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
If (Len(txtphonemember.Text) <> 10) Then MessageBox.Show("คุณกรอกหมายเลขโทรศัพท์ยังไม่ครับ", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
Else
If txtcode.Text = "" Then MessageBox.Show("กรุณาป้อนรหัสสินค้า", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
If txtname.Text = "" Then MessageBox.Show("กรุณาป้อนชื่อสินค้า", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
If numcheck.Text = "" Then MessageBox.Show("กรุณาป้อนจำนวนสินค้า", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
If txtsell.Text = "" Then MessageBox.Show("กรุณาป้อนราคาสินค้า", "ระบบตรวจสอบความถูกต้อง", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
ProgressBar.Step = 21
ProgressBar.Value = 0
btsave.Enabled = False
Time2.Enabled = True
Cursor = Cursors.WaitCursor
สำหรับคนแนะนำคับ