![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm trying to add a resource file to my app but it's not working. I have done the following: -- Added a .resx file -- Added some strings -- Named the file "MyStrings.en.resx" -- Add the file as a resource to the "Project" > "Properties" "Resources" -- Tried to call the strings using: Dim rm As ResourceManager rm = New ResourceManager("StringTable", Me.GetType().Assembly) MessageBox.Show(rm.GetString("String1")) |
#3
| |||
| |||
|
|
"TCook" <getmyemails2 (AT) yahoo (DOT) com> schrieb: I'm trying to add a resource file to my app but it's not working. I have done the following: -- Added a .resx file -- Added some strings -- Named the file "MyStrings.en.resx" -- Add the file as a resource to the "Project" > "Properties" "Resources" -- Tried to call the strings using: Dim rm As ResourceManager rm = New ResourceManager("StringTable", Me.GetType().Assembly) MessageBox.Show(rm.GetString("String1")) Why aren't you using 'My.Resources.*'? -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/ V B <URL:http://dotnet.mvps.org/dotnet/faqs/ |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |