|
-
Dec 19th, 2003, 08:26 PM
#1
Thread Starter
Lively Member
keyChar question (resolved by pirate)
how would i set the keyascii value to 0 to not allow the ' mark to be typed in a textbox? i have the following
Private Sub txtFullName_Press(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtFullName.KeyPress
If Asc(e.KeyChar()) = 44 Then
Asc(e.KeyChar) = (0) ' <~~~ ??????
End If
End Sub
Last edited by NeonBurner; Dec 19th, 2003 at 08:42 PM.
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
|