Results 1 to 8 of 8

Thread: ?????/

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2002
    Location
    VIETNAM
    Posts
    209

    ?????/

    PLEASE TELL ME WHERE THE "www.vbsquares.com" is?i cant visit it

  2. #2
    Lively Member
    Join Date
    Mar 2001
    Location
    Norway
    Posts
    88
    Is this a joke?
    - zen

  3. #3

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    Limit the user to letters, numbers and the backspace in a textbox.
    VB Code:
    1. Private Sub Text1_KeyPress(KeyAscii As Integer)
    2.    
    3.     Select Case KeyAscii
    4.         Case 8 ' Backspace
    5.         Case 48 To 57 ' Numbers
    6.         Case 97 To 122 ' Lowercase letters
    7.         Case 65 To 90 ' Uppercase letters
    8.         Case Else
    9.             KeyAscii = 0
    10.     End Select
    11.    
    12. End Sub

  5. #5
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    That can also be written
    VB Code:
    1. Private Sub Text1_KeyPress(KeyAscii As Integer)
    2.    
    3.     Select Case KeyAscii
    4.         Case 8, 48 To 57, 97 To 122, 65 To 90
    5.         Case Else
    6.             KeyAscii = 0
    7.     End Select
    8.    
    9. End Sub

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Um, Martin?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7

  8. #8
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    Originally posted by MartinLiss
    Oh, I see... I answered the wrong post.

    LOL gotta report those two posts: "flooding"

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

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