Why does textbox keydown generate beep on desktop?

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Have this textbox event code:

B4X:
Sub txtSearch_KeyPress (key)
   If key = Chr(13) Then
      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
 

Cableguy

Expert
Licensed User
Longtime 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....
 

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Does it happen with any key?

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
 

RB Smissaert

Well-Known Member
Licensed User
Longtime 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
 
Top