How do i do to Make a Select Beep sound and when is selected and i press button1 it will make the sound i choose.
Recommended Answers
Jump to PostYou can call
Console.Beep()
to make the computer beep. This will use the internal speaker of the computer. If you want to play a custom sound you will need to use the computer's external speaker. To play a WAV file user theSoundPlayer
class:private …
Jump to PostPrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Console.Beep() Dim sp As New System.Media.SoundPlayer("C:\filename.wav") sp.Play() sp.Dispose() End Sub
Jump to PostYou can embed the wav files into your project by adding them to the project Resources.
All 10 Replies
sknake
1,622
Senior Poster
Featured Poster
xfrolox
9
Junior Poster in Training
sknake
1,622
Senior Poster
Featured Poster
xfrolox
commented:
Reputation for helping me.
+1
xfrolox
9
Junior Poster in Training
TomW
73
Posting Whiz
xfrolox
9
Junior Poster in Training
xfrolox
9
Junior Poster in Training
xfrolox
9
Junior Poster in Training
sknake
1,622
Senior Poster
Featured Poster
xfrolox
9
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.