Neal

Neal

  • NA
  • 9
  • 0

How to move resources around in a project?

Apr 3 2007 6:20 AM

I'm using the following lines of code in my project to change the UI languager:
[CODE] CultureInfo ci = new CultureInfo(""); //invariant culture
ci = new CultureInfo(GetLanguage);
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LanguageResource));[/CODE]
               
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?