如何才能讓文本框只響應數字健,不響應鍵盤上的其它鍵呢
Private Sub Text1_KeyPress() If KeyAscii < 48 Or KeyAscii > 57 Then KeyAscii = 0 End Sub