要怎麼寫程式讓輸入textbox的值要英文&數字,不能用中文啊?
2005-12-29 16:54:47 · 1 個解答 · 發問者 Anonymous in 電腦與網際網路 ➔ 程式設計
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii <> 8 And KeyAscii <> 13 Then
If KeyAscii < Asc("a") Or KeyAscii > Asc("z") Then
If KeyAscii < Asc("A") Or KeyAscii > Asc("Z") Then
If KeyAscii < Asc("0") Or KeyAscii > Asc("9") Then
KeyAscii = 0
End If
End If
End If
End If
End Sub
2006-01-01 11:04:52 · answer #1 · answered by 世賢 7 · 0⤊ 0⤋