17-10-12, 04:44 PM
كاتب الموضوع : AhmedEssawy
اضف الكود التالي في الحدث Key_Press كود :
'Allow only numbers when someone types in a textbox control
'Add a textbox to the form and name is: txt . Then put the following
'code in the Key_Press event of the textbox control.
If e.KeyChar.IsNumber(e.KeyChar) = False Then
e.Handled = True
End If