• Advertisement
Sign in to follow this  

[.net] C# Properties.Resources

This topic is 3210 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

to load a mp3 file I can do ; string locName = "atb.mp3"; windowsMediaPlayer.URL = locName; but if I want to add the mp3 as a resource I cant do: string locName = Properties.Resources.atb; how would I load the file from resources I dragged it over to audio but it doesn't seem to work.

Share this post


Link to post
Share on other sites
Advertisement
bump any ideas on perhaps another method to load mp3 from resources

Share this post


Link to post
Share on other sites
IIRC those resources are embedded within the .exe itself, and so you'll need to extract them to files so that you can generate a URL to them.

It's probably easiest to not use Properties.Resources for MP3s in the first place, and instead keep them as loose files.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement