COMO BLOQUEAR TECLAS NO TEXTBOX
Pessoal queria saber se tem como deixar abilitado apenas o alfabeto de letras maiúscula e minúscula sem letras com acento mas queria saber se tem como fazer de outra forma que naum seja está:
If KeyAscii = 33 Then KeyAscii = 0
If KeyAscii = 34 Then KeyAscii = 0
será que tem como?
Desde já muito Obrigado
If KeyAscii = 33 Then KeyAscii = 0
If KeyAscii = 34 Then KeyAscii = 0
será que tem como?
Desde já muito Obrigado
65-90 = A-Z
97-122 = a-z
ae vc faz:
se estiver fora desses intrevalos (keyascii=0)
97-122 = a-z
ae vc faz:
se estiver fora desses intrevalos (keyascii=0)
If KeyAscii MENOR 64 And KeyAscii MENOR 91 Then KeyAscii = 0
If KeyAscii MAIOR 90 And KeyAscii MENOR 97 Then KeyAscii = 0
If KeyAscii MENOR 96 And KeyAscii MAIOR 123 Then KeyAscii = 0
If KeyAscii MAIOR 123 Then KeyAscii = 0
If KeyAscii MENOR 64 Then KeyAscii = 0
não sei se é SUPERDOSAGEM de código, mas funciona!
If KeyAscii MAIOR 90 And KeyAscii MENOR 97 Then KeyAscii = 0
If KeyAscii MENOR 96 And KeyAscii MAIOR 123 Then KeyAscii = 0
If KeyAscii MAIOR 123 Then KeyAscii = 0
If KeyAscii MENOR 64 Then KeyAscii = 0
não sei se é SUPERDOSAGEM de código, mas funciona!

Tópico encerrado , respostas não são mais permitidas