I have a C# project with some gif and mp3 files
how I can combine those files within my project?
(I don’t want them to be visible to users)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to include them in the project as resources, and then access them later by reading from the DLL.
For gif files you can simply drop them on the resources (in the project->properties dialog) and then access them via
For mp3 files you will probably need to use embedded resources, and then read them out as a stream. To do this, drag the item to a folder in your project dedicated to these types of files. Right click on the file in the explorer and show the properties pane, and set the “build action” to “embedded resource”.
You can then use code something like this (untested translation from vb, sorry), to get the thing back out as a stream. It’s up to you to transform the stream into something your player can handle.
Here are a few links to get you started