Hello,
I am trying to set a picture from the projects resources to a picture box. I could not find much on msdn website.
This is what I have,
Code:
System::ComponentModel::ComponentResourceManager^ resources = gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid);
this->pictureBox5->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"blued.jpg")));
The image in my resource folder is blued.jpg
I dont think I am setting it correctly b/c if I set the default image as blued.jpg with the UI this is what i get,
Code:
this->pictureBox5->InitialImage = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox5.InitialImage")));
Thank you for your help and time!
Also I am using Microsoft Visual C++ 2010