RETURN key press sound a beep in TextBox

claudio

Member
Licensed User
Longtime User
I need to handle the return key into the textbox controls.

The reason is because some industrial devices has a keyboard and users often prefer to use the RETURN key to go to the next field.

I can trap the key with this code:

Sub MyText(key)
If key = Chr(13) Then
fldDESCRIPT.Focus
End If
End Sub

And the focus goes to the next field but the device sound a beep, there
are some way to switch off that beep.

Thanks
Claudio
 

agraham

Expert
Licensed User
Longtime User
It is Windows that is producing the sound. On Vista it is Control Panel -> Sound -> Sounds -> "Default Beep". On XP it is Control Panel -> Sounds and Audio Devices -> Sounds -> "Default Beep".

Edit : You said "devices". On a device it is Settings > Personal -> Sounds and Notifications -> Events (warnings, system events)
 
Last edited:

xeir

Member
Licensed User
I had noticed that as well and was curious. So there's no way within Basic4PPC to disable the beep for that particular scenario then? Not like it's a big thing, it just sort of makes you think there's an error everytime.

Regards
 

claudio

Member
Licensed User
Longtime User
It is Windows that is producing the sound. On Vista it is Control Panel -> Sound -> Sounds -> "Default Beep". On XP it is Control Panel -> Sounds and Audio Devices -> Sounds -> "Default Beep".

I wonder that .NET doesn't have a way to switch off it, but if is not so,
there are a way to stop the message propagation? I'm not a .NET expert.

Many thanks
Claudio
 
Top