Background Image causes exception on startup but works in Forms Editor
-
I have an application developed in non-CLR C++ (unmanaged) in VS2003 (or earlier) but working with VS2005 after some converting. Note that I didn’t do that converting. My employer decided to update the code to CLR VS2010 for easier maintenance. I am a C# programmer and haven’t done C++ for a while and not within VS so I’m not the most skilled in this task. I’ve set it to CLR and corrected the errors and most of the warnings, but I’m having a problem with some image resources in the Form1.resX file (took me a while to even figure out that the resources were IN that .resx file ;-) I can see them in there and the Form [Design] editor can see the resource and paints the image as a background for its tab: this->tabPage1->BackgroundImage = (safe_cast(resources->GetObject("tabPage1.BackgroundImage"))); The resX file is version 1.3 of the schema or so it says rather than the 2.0 that a newly created windows forms application has but seems OK otherwise.