Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
Hello there I am have successfully loaded the resource manager. But I am not getting suitable ways to add, update or remove resource to the Resource.designer.cs file. For example, here is the code below
ResourceManager rm = ElectronicNapkinCam.Properties.Resources.ResourceManager;
            CultureInfo ci = ElectronicNapkinCam.Properties.Resources.Culture;
            //getting the current value of the resource
            MessageBox.Show(rm.GetString("FilePictureSaveFilter",ci));


Here in the messagebx I can see the value of 'FilePictureSaveFilter', But if I want to update or delete that key as well as value, how to do that? Any code example will be appreciated.
Posted
Comments
Henry Minute 2-Nov-10 12:53pm    
I assumed it was a windows application.
Take a look at http://www.codeproject.com/KB/dotnet/savior.aspx, an article here on Code Project. There are lots of others both on here and on the 'web. Use your search skills to find more.

1 solution

ResourceManager is a read-only object, it has no methods to modify values.

You may be able to amend some values by using Application Settings

Search the Articles here on Code Project and on the internet. There are some good blogs/articles on this.
 
Share this answer
 
Comments
Masud1869 1-Nov-10 1:39am    
Well, I did some browsing and found that app setting can be modified during when the program is not running and using some graphics designer. I would like to dynamically modify the settings using c# code and the restriction is also I am not allowed to use any database. Can you help me with some sample codes? That will be greatly appreciated.
Masud1869 1-Nov-10 1:41am    
And another thing is I am using a windows application not an web application. thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900