Visual Basic Resource Files
Posted on 2014-10-13
I want to move all of my English strings into a Resource file (an resx).
I've been able to create the resx and add it into my Project, but I am struggling about the code as to how to refer to it. I believe I should use GetString to get the strings, but it's the code getting to the resource file in the first place that's the problem.
Looking online, people have been talking about Assembly and ResourceManager etc., but I can't get any of it to work. Maybe I am missing some "Imports" at the beginning.
So, is anyone able to give some code for accessing a single string in a resource file (i.e. with all of the necessary Imports that I need).
I am using MS Visual Studio 2010.