I’ve two Visual Basic 2008 projects – one is a class library project and another is a Windows Forms project. In the class library project, I’ve defined some strings in the project resources (project properties > Resources tab).
I build that class library project and get the DLL file from the debug folder and added up as a reference in my Windows Forms project.
How do I read those strings from the referenced DLL file?
I think you just use
System.Reflection.Assembly.Loadto load the other assembly then use the constructor ofSystem.Resources.ResourceManagerthat takes an assembly.Note, I don’t think it needs to a reference for this to work.