I have some image files in my resouces [.resx file] that I have added by using Visual Studio. But, now I need to add the Images programmatically into resource.
How do I this?
Use the ResXResourceWriter.AddResource
method for each resource you want to add to the resx file. Use the overloads of this method to add string, object, and binary (byte array) data
. If the resource is an object, it must be serializable.
See here for a complete sample - http://msdn.microsoft.com/en-us/library/gg418542.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With