|
-
November 23rd, 1999, 12:07 PM
#1
Mask without a mask
I want to use a TextBox where only numbers and letters can be put.
How can I do that?
Or how can I use the mask edit box???
Fzz
-
November 23rd, 1999, 01:37 PM
#2
Re: Mask without a mask
If you don't want to use the Masked Edit Control, try something like:
private Sub Text1_Keypress(KeyAscii as Integer)
If InStr(1, "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 " & Chr(vbKeyBack), Chr(KeyAscii), vbTextCompare) = 0 then KeyAscii = 0
End Sub
Aaron Young
Analyst Programmer
[email protected]
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|