Where to store an mp4 file in my project?

1.7k views Asked by At

I have been studying vb.net for a couple of months now and I want to try something new. I have this sample project to try. It is a web browser and I want that if a button will be clicked, a video will play immediately.

This is what my application looks like currently when I run the program:

web browser application sample run

Is it possible to store an mp4 file in my Visual Studio project so I can play the video in my app without streaming or opening a local file?

ico file stored in visual studio

See the above picture. The .ico file is stored in my project, so when the icon is used, it appears automatically since it is saved in the application. I wanted the same thing for my mp4 file. How to do it? Or where should it be saved? Is it even possible or probable?

I have searched a lot and I got these: stackoverflow question and microsoft tutorial. But none of these gives the answer of my question.

1

There are 1 answers

2
Sastreen On BEST ANSWER

Try going

Project>"Project Name" Properties>Resources>Add Resource>Add Existing File

This should add the file into your resources folder.

You can then access any file by going My.Resources.Name_Of_Resource