>>>I am developing a custom textbox sub-class. I am monitoring each keystroke in the keypress event. Some keystrokes are obvious errors and I want to sound the "bell" when those keys are pressed rather than accept them. I specify NODEFAULT on those keystrokes and so I therefore do not accept them, but I want the user to be aware so that is why I want to sound the "bell". The users only look up when they hear a "bell". I cannot find a way to make the bell sound.
>>>
>>>Can anyone help me?
>>
>>??CHR(7)
>
>Fred,
>
>I use that successfully in Foxpro 2.0 even when it is running in a DOS window under Windows 95, but in Visual Foxpro running under Windows 95, CHR(7) only produces an almost inaudible tick sound. I want the old fashioned beep sound that I grew to know and love in DOS. I know that I can SET BELL TO a .wav file, but .wav files are not played through the tiny on board speaker. You have to buy a sound card to play a .wav file.
>
>Any other ideas?
Actualy, You can play wav files through the speaker and dont have to buy a suond card. All you need is ''speaker.drv"
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only