3

I have a program that made with c# and it has include more pictures and files.

And how I make an exe that include all of images and files.

1 Answers1

1

You can use Application Resources in visual studio.

  1. Right click on Project (Solution Explorer) and Go to Properties

  2. Select Resources tab

  3. Add what you want (Images, Files, Strings etc.)

You can access them in your code as per below

Properties.Resources.<Resource Name>

If you added image img1 to Resources

you can use below code to use it

pictureBox1.Image = Properties.Resources.img1;
Shalitha Suranga
  • 1,138
  • 8
  • 24