locked
Can we add OR change Resource File (.resx) runtime ? RRS feed

  • Question

  • User750184344 posted

    Hi,

    I am using Resource files for localization. I am adding differnt resource files for different languages and adding Strings into that and as per language selection, i am retrieving string of respective file.

    But I have to add some more languages runtime, so i have to generate resource file and its contents runtime, Can I do it ?

    Can someone please provide me sample code to add resource file runtime and adding String Values or Images to that resource file at runtime.

    Thanks in advance,

    Nirav

    Thursday, July 27, 2006 10:27 AM

All replies

  • User-1936818034 posted

    There is no such api to do that yet~

    BUT if you just use string resource file, notice it's xml file, and is text file~
    SO if you wanna add a resource file, just try creating a text file with .resx as extension and fill it with desired schema (or just copy from another resource file which has its schema but is with no data)
    AND if you wanna add string values, try the Xml way: open the file as XmlDocument and modify it by use of XmlNode, XmlElement and Xpath~ [;)]

    HOWEVER, when this comes to image.. emm.. may be complicated [:(]

    Friday, July 28, 2006 12:06 AM