Results 1 to 2 of 2

Thread: Stop the Beeping when pressing enter on a field

  1. #1
    Guest

    Unhappy

    Any one out there who can tell me
    how to stop the beeping when when we press enter to
    navigate the screen developed in VB6.
    we are making an accounting software for our client
    and there are really goin mad becuase every time
    they navigate the screen by pressing enter
    it give a beep. this beep comes form the speaker inside
    the casing of the PC, and when cound card is there it comes
    formt he sound card,plz help to solve this problem

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    On the keypress event you need to trap for the enter key, which i assume you are already doing if you are navigating to another form. In whichever keypress event you are trapping the enter key simply set KeyAscii = 0.

    Code:
    Private Sub Form_KeyPress(KeyAscii As Integer)
      If KeyAscii = 13 Then
        KeyAscii = 0
        Form2.Show
      End If
    End Sub
    [Edited by Iain17 on 04-26-2000 at 02:46 PM]
    Iain, thats with an i by the way!

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