excluding keys from text box

A

alekm

Hi,
how can I make text box react as nothing has happend when I press certain
key. For example when I press ascii 39 (') I want text box to completly
ignore it, like notihing was pressed on keyboard.
thanx in advance

alek_mil
 
D

Douglas J. Steele

Private Sub Text0_KeyPress(KeyAscii As Integer)
If KeyAscii = 39 Then
KeyAscii = 0
End If
End Su
 
Top