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 ("StringTabl e", Me.GetType().As sembly)
Message = New StringBuilder()
Message.Append( rm.GetString("S tring1"))
Message.Append( rm.GetString("S tring2"))
MessageBox.Show (Message.ToStri ng())
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