Can I make a program that plays a sound every time I click on it somewhere? I really need this. Like, in some operating systems, it plays a sound everytime you click on a window.
The examples are shown using the
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click My.Computer.Audio.PlaySystemSound( _ System.Media.SystemSounds.Exclamation) End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click My.Computer.Audio.Play("C:\Mysound.wav", _ AudioPlayMode.BackgroundLoop) End Sub