Why does textbox keydown generate beep on desktop?

Discussion in 'Questions (Windows Mobile)' started by RB Smissaert, Jan 3, 2009.

  1. RB Smissaert

    RB Smissaert Well-Known Member Licensed User

    Have this textbox event code:

    Code:
    Sub txtSearch_KeyPress (key)
       
    If key = Chr(13Then
          DoProcedure
                    
    'for some reason there will be a beep  here
       End If
    End Sub
    The beep is not generated by DoProcedure (tested with a Msgbox after DoProcedure) and not code runs after this event code.
    So what generates this beep or this just the normal behaviour with a Return
    key press in an event?

    It doesn't happen on the device.

    RBS
     
  2. Cableguy

    Cableguy Expert Licensed User

    Usually desktop keyboard beeps indicate a "too long " key press...
    Does it happen with any key?
    If so then, verify you keyboard setting in the control panel for something like "typematic speed" if you cannot find it in the control panel, then you must search the bios....
     
  3. RB Smissaert

    RB Smissaert Well-Known Member Licensed User

    No, only with the Return key, so when that procedure runs.
    Have done a breakpoint and stepped through the code, but there is no line
    of code that does this. Not really anything to worry about, but just puzzling
    what makes this happen.

    RBS
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    The native textbox plays this sound to indicate that it doesn't support "Return".
    If you'll change the textbox to a multiline textbox, it will not beep.
     
  5. RB Smissaert

    RB Smissaert Well-Known Member Licensed User

    Ah, thanks for clarifying that.
    It doesn't beep on the device though.
    I will keep it as it is as this textbox shouldn't be multi-line.
    Not sure really, but maybe it would be better if it didn't beep. VBA and VB6 textboxes don't do this.

    RBS
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice