>>I have telphone.jpg and i have telphone.wav
>>
>>telphone.wav is ringing sound of telephone.
>>
>>Now what should happend when i click on the telphone.jpg than telphone.wav should start ring .
>>how to do.
>
>Hello, Mohammed.
>
>Just put your JPG as the Picture of an Image control on a form.
>
>In its Click() method, issue:
>
>SET BELL TO "telphone.wav"
>?? chr(7)
>
>
>Hope this helps.
Just a simple addition to what Martín said:
You can place the Set Bell to command right after the line ?? chr(7).
You don't need to wait for resetting it till the wav stopped.
So the code will look like:
Set bell to 'telphone.wav'
?? chr(7)
set bell to