What happens to the name/value pairs stored inside a form’s resx file? Are they compiled into the binary when I compile my project?
For my particular project, I would like the ability to edit one of these values manually without recompiling (app.config-style), is there a simple way to do this?
EDIT: Some people seem to not be getting my question. When doing WinForms, if the set-up inside of InitializeComponents() depends on the form’s resource file, simply setting the build action to copy always and the content type to content breaks the form. I am sure that there is a simple solution, but not having worked with resource files before am confused as to what it would be.
If you put the values in the .resx file, by default they get compiled into your assembly (or a satellite resource assembly).
If you want the ability to edit the values at runtime, you should really use either app.config or the registry. I personally prefer the app.config file.
The easiest way to put the value in the app.config file would be to use the Settings tab in the project Properties.
If you insist on keeping your values in an .resx file, I guess you could treat that particular .resx file as a an XML content file and just copy it to the output directory. I am not sure what framework classes are there to help you with parsing this file and consuming its content, though. You might have to resort to XmlDocument and your own XL parsing to extract/modify the values.