Results 1 to 4 of 4

Thread: text box

  1. #1

    Thread Starter
    Hyperactive Member badgers's Avatar
    Join Date
    Sep 1999
    Location
    Madison, WI USA
    Posts
    444

    Post

    is there a way to suppress the system tone that you get when someone hits enter in a text box? The user enters info in this text box. when they hit enter I run some code. This all works but the users are asking me why their computer is making a tone
    thank you for your time and have a good day

    ------------------
    I am so skeptacle, I can hardly believe it!

  2. #2
    Member
    Join Date
    Jan 1999
    Location
    Garden Grove, CA, Orange
    Posts
    55

    Post

    Insert KeyAscii = 0 when Enter Key is detected.

    If KeyAscii = 13 Then
    KeyAscii = 0
    SendKeys "{TAB}"
    End If

    Joon

  3. #3

    Thread Starter
    Hyperactive Member badgers's Avatar
    Join Date
    Sep 1999
    Location
    Madison, WI USA
    Posts
    444

    Post

    thank you very much. Why the send
    SendKeys "{TAB}"?
    it works without it

  4. #4
    Member
    Join Date
    Jan 1999
    Location
    Garden Grove, CA, Orange
    Posts
    55

    Post

    Sorry, that was just my code for moving focus to next control.

    Should be this

    If KeyAscii = 13 Then
    KeyAscii = 0
    ' Run ur Code here
    End If

    Joon

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