Add an image to your project resource file
- Go to Solution Explorer → Project node → Properties folder → Resources.Resx
- Open Resources.Resx in design view by double click on the file.
- Then it's enough to drag an image from windows explorer and drop it into the designer. The image will be added to the
Resources.Resx
.
As another option, you can click on Add Resource
dropdown and choose Add Existing File...
from menu.

For example if you have added MyImage.png
to resource file the you can access it in code this way:
this.BackgroundImage = Properties.Resources.MyImage;
Just in case your project doesn't have such Resources.Resx
file
- Right click on Project → Choose Properties
- In project properties window, choose Resources (left side, bottom of the list).
- At the center, you will see a link This project does not contain a default resources file. Click here to create one. Click on the link and it will create a
Resources.Resx
file under Properties
folder for your project.
Select Resource Dialog for Image properties
You can also add the image to project resource file from Select Resource dialog. To do so, open your Form
in design view:
Open Properties window → BackgroundImage property → Click on ...
button in front of the property in property grid.
In the Select Resource dialog, make Properties\Resources.Resx
has been selected in combobox.
Click on Import
button and choose an image and press OK.
The designer will add the image to resource file and set it as BackgroudImage
property of the form.