Looks like it's the name of your resource stream that's causing a problem. You're not referencing it right. It's more like "namespace.bar.ext"
If you have a file attached directly to the project (i.e. not in a project subfolder) then set the BuildAction of that file to Embedded Resource, then the resource reference will be the Default Namespace (as specified in the properties of the project under the Application tab) then "." file name.
An example below of working code as I did not fully check over your code but it looked ok at a quick glance.
Main Topics
Browse All Topics





by: Omego2KPosted on 2009-11-03 at 12:30:22ID: 25733239
why aren't you using your stream object: resourceStream ?