First, your If statement needs a closing End If statement.
If TextBox2.Text = "1" Then
TextBox2.BackColor = Color.LawnGreen
'C:\Users\Nick\Desktop\good_work.play
End If
Second, you cannot just paste a file's full path, especially one without a file extension and expect nothing but errors.
You have to declare it.
Dim myCoolFile As String = "C:\Users\Nick\Desktop\good_work.wav"
And finally, check out this thread. How do I make a program in VB make a sound when it starts?
codeorder
Posting Virtuoso
1,913 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384
codeorder
Posting Virtuoso
1,913 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384