Er..., the project you sent was not all that helpful. I can't find any .exe nor .pdf resources in it.
And the only code that's opening a resource stream is looking for "Runner.exe" (which was my example).
Depending on the way you add the files as resources, you have two options. I have the impression you tried to use the second option (which will only work in .NET 2.0), but with the code for the first option.
So I would recommend the second option (B) for you.
A) Following the steps I gave previously
1) Add the .exe and the .pdf to an assembly (right click in Solution Explorer on your project, choose Add Existing Item)
2) Set the Build Action to Embedded Resource
3) Use the code I gave you earlier (
be sure to respect case: for instance it's "WindowsApplication1" and not "windowsapplication1" in the solution you sent me.
B) Add the files as resources in the My namespace
1) In Solution Explorer: Doubleclick on My Project -> Resources.resx
2) Choose Files
3) Choose Add Resource -> Add Existing File and add your .exe and .pdf
4) Use following code to retrieve the resources and write them to disk (you'll get help from Intellisense when using My.Resources. , I used MyExe as an example in the code below)
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] f [/SIZE][SIZE=2][COLOR=#0000ff]As [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] IO.FileStream([/SIZE][SIZE=2][COLOR=#800000]"myexe.exe"[/COLOR][/SIZE][SIZE=2], IO.FileMode.Create, IO.FileAccess.Write)
[/SIZE][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] buffer() [/SIZE][SIZE=2][COLOR=#0000ff]As [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Byte[/COLOR][/SIZE][SIZE=2] = [/SIZE][SIZE=2][COLOR=#0000ff]My[/COLOR][/SIZE][SIZE=2].Resources.MyExe
f.Write(buffer, 0, buffer.Length)
f.Close()
[/SIZE]