I stored some .wav files in the resource folder, but I don't know what the type would it be after Properties.Resources.ResourceManager.GetObject("A.wav")
So I called
MessageBox.Show(Properties.Resources.ResourceManager.GetObject("A.wav").GetType().ToString());
However, it give me an exception on
Properties.Resources
:
error CS1061: 'PropertyStore' does not contain a definition for 'Resources' and no extension method 'Resources' accepting a first argument of type 'PropertyStore' could be found (are you missing a using directive or an assembly reference?)
Thanks for any help!
////////////////////////////////////////////////////
The answer for this problem is as what Amy provided.
stackoverflow.com/questions/90697/…
The resources folder should been added in property tab but not do it manually.