0
My.Computer.Audio.Play(My.Resources.Waterfall, 
        AudioPlayMode.WaitToComplete)

I'm trying to play a WAV file that is inside of Resources acording to this https://msdn.microsoft.com/en-us/library/bc61hbxh.aspx

I get the error The Name 'My' does not exist in current context in Visual Studio 2013

How do I fix this?

Dijkgraaf
  • 11,049
  • 17
  • 42
  • 54

1 Answers1

0

My.Computer is providing access to the local computer resources. You could try the code on a windows form application using visual basic .net

here's the detail of My Class: https://msdn.microsoft.com/en-us/library/20fy88e0.aspx

Alex
  • 161
  • 1
  • 4