Hey All,
I am building a solution which will have many strings that will need to be
localized (i.e. strings for toolbars, strings for different WinForms,
strings for messages and error messages, etc.).
I am having trouble accessing string file resources.
What I want to do is to break out strings into separate files so that they
are easier to manage and such that I don't have to look through hundreds to
find, edit or delete something.
How can I use code similar to that below:
Dim rm As ResourceManager
Dim Message as StringBuilder
rm = New ResourceManager("StringTable", Me.GetType().Assembly)
Message = New StringBuilder()
Message.Append(rm.GetString("String1"))
Message.Append(rm.GetString("String2"))
MessageBox.Show(Message.ToString())
Right now, when I try the above I get an error claiming that such resources
cannot be found. The text file is listed under the resources. What's
wrong?
Am I missing something in regards to the structure of the text file or
perhaps how it is added?
Please advise.
Thanks,
TC