Here is a snippet of the code that I have thus far (Which I wish worked):

Dim PlayedSound as string

If ComboBox1.SelectedItem = "Sound 1" Then
PlayedSound = "Sound1"
My.Computer.Audio.Play(My.Resources.(PlayedSound, AudioPlayMode.Background)

So basically the combobox1 item which is selected is sent to a string and is then supposed to be played from my resources. The .wav file which is in my resources is named "Sound1" however I have no idea how to reference it. Any ideas?

Thanks! :)

If ComboBox1.SelectedItem = "Sound 1" Then
you need to set Playsound="ur audio file name not Sound1"

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.