Disable sound in form
Posted: Sun Jul 22, 2012 11:34 am
I want to disable the sound in the current form only, can this be done? if so how ?
Sharing, Teaching and Supporting coders of all ages and levels since 2009
https://www.codenstuff.com/forum/
<DllImport("winmm.dll")> Shared Function waveOutSetVolume(ByVal hwo As IntPtr, ByVal pdwVolume As UInteger) As UInteger
End Function
Private Sub btnMute_Click(sender As System.Object, e As System.EventArgs) Handles btnMute.Click
waveOutSetVolume(IntPtr.Zero, 0)
End Sub