Results 1 to 9 of 9

Thread: disabling beep sound when clicking Enter

  1. #1

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    disabling beep sound when clicking Enter

    once again hi
    how can I disable beep sound when clicking Enter??
    thanx

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629

    Re: disabling beep sound when clicking Enter

    Originally posted by pirate
    once again hi
    how can I disable beep sound when clicking Enter??
    thanx
    what do you mean?
    -= a peet post =-

  3. #3

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I'm using W XP .When I click Enter in the combobox after running the project , it sends beep sound.

    by the way , you have a nice site

  4. #4
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    try something like this

    VB Code:
    1. Private Sub Combo1_KeyPress(KeyAscii As Integer)
    2.     If KeyAscii = vbKeyReturn Then
    3.         KeyAscii = 0
    4.         Exit Sub
    5.     End If
    6. End Sub

    works for vs6.0

    -= a peet post =-

  5. #5
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    if you are refferring to the site in my sig, its not mine
    -= a peet post =-

  6. #6

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    this will never work in VB.NET.

  7. #7

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    so now it's resolved
    for benefit of others for benefit of others

  8. #8
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    looks very much like my sample... only they trap all keypresses for the entire form...
    -= a peet post =-

  9. #9
    Lively Member Kenbuddy's Avatar
    Join Date
    Jul 2002
    Location
    Cypress, TX
    Posts
    96

    Re: disabling beep sound when clicking Enter

    Just FYI, DevComponents has a custom combobox control sold with their DotNetBar suite that has a "PreventEnterBeep" property. I haven't used it yet, but I can only assume it works...

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