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?
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....
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.
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.
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.