Results 1 to 4 of 4

Thread: keyChar question (resolved by pirate)

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2003
    Location
    US
    Posts
    68

    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
  •  



Click Here to Expand Forum to Full Width