COMO BLOQUEAR A TECLA TAB?
Alqguém poderia me ajudar, me dando alguma dica de como posso bloquear a tecla Tab ou tratar ela como sendo enter?
Coloca no KeyPress de cada text, combo, list, etc
Private Sub txtEndereco_KeyPress(KeyAscii As Integer)
'Envia TAB quando for Pressionado Enter
If KeyAscii = 13 Then
SendKeys "{TAB}", True
KeyAscii = 0
End If
End Sub
Private Sub txtEndereco_KeyPress(KeyAscii As Integer)
'Envia TAB quando for Pressionado Enter
If KeyAscii = 13 Then
SendKeys "{TAB}", True
KeyAscii = 0
End If
End Sub
FLAVIO PAGANINI disse está correto, mas se você tiver um text MULTLINE ele não vai funcionar com KEYPREVIEW do form como True, neste caso tem q ser False.
Falows
Falows
Tópico encerrado , respostas não são mais permitidas