Results 1 to 3 of 3

Thread: Easy Textbox question....take on sec!

  1. #1

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    How can I disable the 'enter' button in a textbox?
    I am not sure on what function to use...

    Code:
    Private Sub Text1_Change()
    If ??????? = vbReturn Then
    ??????????????????????????
    End If
    End Sub
    I tried Keypress/Keydown...
    That arranged can be

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    Code:
    Private Sub Text1_KeyPress(KeyAscii As Integer)
        If KeyAscii = 13 Then
          KeyAscii = 0
        End If
    End Sub
    Iain, thats with an i by the way!

  3. #3

    Thread Starter
    Hyperactive Member Sacofjoea's Avatar
    Join Date
    May 2000
    Location
    Never Never Land
    Posts
    472
    Thanks

    [Edited by Sacofjoea on 08-09-2000 at 11:56 AM]
    That arranged can be

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