المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Help me with .resx saving string



C# Programming
11-13-2009, 01:20 PM
Hello, i have a default program .resx file it is named: form1.resx, i'd like to do allow change users the string value, i have 'First' string and it's value is 'One', i'm using this code to load the string from it:

this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));

rValue = resources.GetString("First");

And it get's 'One' value, it's correct. So i'd like to change it by a program. I've tried resources.ApplyResources("First", "Two"); but it won't work, any ideas? Thanks.