I'm using the following lines of code in my project to change the UI languager:
My language resources are in my main project folder, but I've set up a sub-folder called LanguageResources which I'd like to move them into. First off, when I moved them, the class LanguageResource was preceded by a .LanguageResources namespace above the class declaration, I changed that but I'm still having the problem - on the line to instantiate the ComponentResourceManager, it can't seem to find my base LanguageResouce.resx.
How do I tell it to look in a folder for the .resx?
Code:
CultureInfo ci = new CultureInfo(""); //invariant culture
ci = new CultureInfo(GetLanguage);
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LanguageResource));
My language resources are in my main project folder, but I've set up a sub-folder called LanguageResources which I'd like to move them into. First off, when I moved them, the class LanguageResource was preceded by a .LanguageResources namespace above the class declaration, I changed that but I'm still having the problem - on the line to instantiate the ComponentResourceManager, it can't seem to find my base LanguageResouce.resx.
How do I tell it to look in a folder for the .resx?