bucz
July 26th, 2007, 09:09 AM
I have inclded jpg file. In jpg I have included you can see that I have some Resource file MyResources.resx in folder Resource Files in my solution. Inside I have some png file (mypng.image) Now how should I use it in my code?
I want to put it on some button. Original code from button when you include some image looks like this:
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
this->button_send_continously->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"button_send_continously.Image")));
How to "link" my image from other resource file there?
I want to put it on some button. Original code from button when you include some image looks like this:
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
this->button_send_continously->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"button_send_continously.Image")));
How to "link" my image from other resource file there?