Hey guys. I'm trying to put a picture in one of my forms. I dragged a picturebox onto the screen and clicked "Choose Image" and picked my image from the dialog box. When I run it, however, I get a runtime error:
An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll
Additional information: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "nucrypt.polarizer.Controller.resources" was correctly embedded or linked into assembly "polarizer_client" at compile time, or that all the satellite assemblies required are loadable and fully signed.
It's for this line in the header file for the form, which was auto-generated by Visual Studio:
this->pictureBox1->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox1.Image")));
I read in Microsoft's knowledgebase that this is caused by having a class definition before the definition for the form class, however I don't have anything there. The header file looks like:
pragma once
namespace stuff
form class definition
So I'm not really sure what to do from here.