Quoted from a source I can't remember:
[code=vb]
Public Declare Function Beep Lib "kernel32" _
(ByVal dwFreq As Long, ByVal dwDuration As Long) As Long
'Write this code in form_load event or any other event...
'Beep 200, 2000
'(Where 200 will be the frequency in Hertz; range is 37
'through 32,767
'2000 will be duration.)
'THIS ONLY WORKS IN NT/2000/XP. IN 95/98/ME, the freqeuncy and
'duration parameters are ignored.[/code]
Probably the best place to put that is in some module. Then it's out of the way.
Comment