Results 1 to 4 of 4

Thread: Annoying Beep with Enter Key

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Posts
    11
    Is it possible to get rid of the system beep whenever I have the enter key hit? I'm not sure if it has anything to do with this specific code:

    Private Sub t_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = vbKeyReturn Then
    DoEvents
    If editrow <> 0 And editcol <> 0 Then
    If db.TextMatrix(editrow, editcol) <> t.Text Then db.TextMatrix(editrow, editcol) = t.Text
    editrow = 0
    editcol = 0
    End If
    db.SetFocus
    t.Visible = False
    End If
    End Sub

    but whenever I run this, a loud beep occurs. Thanks in advance!

  2. #2
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547
    Change the KeyAscii in the KeyHit property to 0 after your done with it.

    I think this should help.



  3. #3
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301
    If this is a Text.Box, try to change it to MultiLine. That helps .

  4. #4

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Posts
    11

    Thanks a lot

    Thanks guys. Setting the KeyAscii to 0 worked.

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