I'm building a "usercontrol" that has a contextmenustrip on it.
All is fine until I try to add an image to an item, it compliles ok but 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 "HexBox.HexEditBox.resources" was correctly embedded or linked into assembly "HexEditBox" at compile time, or that all the satellite assemblies required are loadable and fully signed.
I can only assume that it can not find the resource!
I checked the .resx file and the resource (image) is there.
Maybe it needs the be somewhere else, or a different process is require to use the contextmenustrip on a user control.
I tried the same process on a "form" and as expected all compiles and run as it should.
Using VS2008 Framework 3.5
Any help is appreciated.
Is there any function to create an XML file from Managed C++/CLI code(like System::IO::File::Create(L"Test.ini"); for plain files). I've to create an XML file from Managed C++/CLI code and write the following contents in it.
The XML is stored in a DOM (Document Object Model). Note the Binary Order Mark supression - the UTF8 Encoding set to false. IF you leave this out then a couple of non printable characters appear in position 1:1. It upsets soapclient no end!
Thanks John also about the point which you indicated. Hovewer this time application's all windows are maximised which is actually not much preferable. I guess you already have a better idea to fix
the problem. Let me know please.
It's allright Screen::GetBounds(this->ClientRectangle)
Suprisingly it didn't work well. The width of the forms just became a little smaller.That's all.
The application still has a screen size or resolution problem. I am really confused.
System::String ^ St = gcnew System::String("Hey ho!");
St = str; //This line won't work, but it's what I'd like to achieve
The only way I can make it work is by doing gcnew again St = gcnew System::String(str.c_str()); but I'm guessing this is not the right way. All the examples I have found tell how to do this when creating a new instance of System::String but none how to do it with an existing one.