G
Guest
I have an application that is designed for using with a bar code scanner. I
want the user to know that the scan was complete and the data was entered, so
I am playing a system sound after data entry. The data is being put into a
text box, and a Return is sent after the data. I use the keypress event to
capture the Return, and save the data. Then, I play the system sound, clear
the text box, and set the focus back to the text box for the next entry.
When I do that, somewhere along the way, the default sound also plays. This
is disrupting my Exclamation sound, and not giving the audible notification
that I want. If there is a problem with the input for some reason, then I
have a message box popping up, and it gives the default sound also. Changing
the default sound does no good, as it would change the one being played when
the message box pops up. The user will not have anything to distinguish
between the good input and the bad input. What event is firing the default
sound, and can I turn it off, so that my Exclamation sound can be heard, or
can I set it to the Exclamation sound?
want the user to know that the scan was complete and the data was entered, so
I am playing a system sound after data entry. The data is being put into a
text box, and a Return is sent after the data. I use the keypress event to
capture the Return, and save the data. Then, I play the system sound, clear
the text box, and set the focus back to the text box for the next entry.
When I do that, somewhere along the way, the default sound also plays. This
is disrupting my Exclamation sound, and not giving the audible notification
that I want. If there is a problem with the input for some reason, then I
have a message box popping up, and it gives the default sound also. Changing
the default sound does no good, as it would change the one being played when
the message box pops up. The user will not have anything to distinguish
between the good input and the bad input. What event is firing the default
sound, and can I turn it off, so that my Exclamation sound can be heard, or
can I set it to the Exclamation sound?