Here's an example from MSDN:
// Replace "filename" below with the actual filename for the JPG
// file you added as a resource; the name is case-sensitive.
// Also make sure that "WindowsApplication1" is replaced with the
// name of your project, if different.
Stream s = this.GetType().Assembly.GetManifestResourceStream("WindowsApplication1.filename.jpg");
Bitmap bmp = new Bitmap( s );
Graphics g = CreateGraphics();
g.DrawImage( bmp, 0, 0 );
Before doing this, follow these steps:
Add a Resource
1. On the View menu, click Solution Explorer, and then select the new project that you created earlier.
2. On the Project menu, click Add Existing Item.
3. Locate and open one raster file (.jpg, .png, or .tif) and one metafile file (.wmf or .emf), and then follow these steps for each file:
a. In Solution Explorer, select the file, and then on the View menu, click Properties Window.
b. Set the Build Action to Embedded Resource.
c. On the Project menu, click Add Existing Item.