mga bro, I have another prob napud sa programming in VB. ang textbox dili xa dapat mo accept og letters,, numbers rajud,,, mga genius sa mga programming help please... thanks and Godbless
mga bro, I have another prob napud sa programming in VB. ang textbox dili xa dapat mo accept og letters,, numbers rajud,,, mga genius sa mga programming help please... thanks and Godbless
Unsa imo pasabot TS kanang after press enter or button diha pa mo-check if numeric ang value sa textbox? If mao na then you can use isNumeric() to check it. Pwde pud ka magcustomize ug imoha function na moCheck ug numbers.
try ni nga code bro...
vbKeyReturn = EnterCode:Private Sub Textbox1_KeyPress(KeyAscii As Integer) If KeyAscii >= vbKey0 And KeyAscii <= vbKey9 _ Or KeyAscii = vbKeyReturn Or KeyAscii = vbKeyBack Then KeyAscii = KeyAscii Else KeyAscii = 0 End If End Sub
vbKeyBack = Backspace
mayta maka tabang ni nimo bro...
User this trapping either in clicks or keypress or keyup or keydown.
If not IsNumeric(txtvalue.txt) then
Msgbox "Invalid Entry"
txtvalue.setfocus()
End If
FREE: Search/Post Jobs & Resume @ cebujobline.com
Similar Threads |
|