B
bob
Hi,
I am having trouble with Resources of a windows app.
If I understand correctly.
1) New C# Windows app. Namespace 'TestResources'
2) Edit default Resources file, set String1 value to say "MyApp"
3) Put the following code in ctor after InitializeComponent
ResourceManager rm = new ResourceManager("Resources",
Assembly.GetExecutingAssembly());
String s = rm.GetString("String1");///BREAKS HERE///
MessageBox.Show(s);
It breaks with a MissingManifestResourceException
Am I missing a setting ?
Thanks
Bob
I am having trouble with Resources of a windows app.
If I understand correctly.
1) New C# Windows app. Namespace 'TestResources'
2) Edit default Resources file, set String1 value to say "MyApp"
3) Put the following code in ctor after InitializeComponent
ResourceManager rm = new ResourceManager("Resources",
Assembly.GetExecutingAssembly());
String s = rm.GetString("String1");///BREAKS HERE///
MessageBox.Show(s);
It breaks with a MissingManifestResourceException
Am I missing a setting ?
Thanks
Bob