Prevent the user from typing data int a text box. This code works with ALL versions of Visual Basic
Prevent the user from typing data int a text box. This code works with ALL versions of Visual Basic, including 1.0 for DOS.
Rate Prevent the user from typing data int a text box. This code works with ALL versions of Visual Basic
(1(1 Vote))
KeyAscii = 0
'Like this:
Sub Textbox1_KeyPress(KeyAscii as Integer)
KeyAscii = 0
End Sub
'''------
'This will tell program that whenever a key is pressed while the textbox has
'the focus, do not allow the program to change the value of the textbox
'contents.
'I am aware that in VB4+ there is a Locked property for textboxes which
'does the same thing, but this works in any version of VB.
Prevent the user from typing data int a text box. This code works with ALL versions of Visual Basic Comments
No comments yet — be the first to post one!
Post a Comment