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.
xfrolox 9 Junior Poster in Training
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 Postxfrolox,
You should create new threads for new questions so this thread doesn't continue to grow until your project finishes up :)
You will need to make calls to the unmanaged win32 API in order to adjust the volume but I would not recommend doing that. A user …
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.