|
-
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.
-
Dec 19th, 2003, 08:32 PM
#2
Sleep mode
Something like this
VB Code:
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If Asc(e.KeyChar()) = 44 Then
e.Handled = True
End If
End Sub
-
Dec 19th, 2003, 08:42 PM
#3
Thread Starter
Lively Member
-
Dec 19th, 2003, 08:55 PM
#4
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
|