Make a new *.resources file. : ResourceWriter « GUI Windows Form « C# / C Sharp






Make a new *.resources file.


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Resources;


public class MainClass {
    public static void Main() {
        ResourceWriter rw = new ResourceWriter(@"C:\myResources.resources");

        // Add 1 image and 1 string.
        rw.AddResource("happyDude", new Bitmap("happyDude.bmp"));
        rw.AddResource("welcomeString", "Hello new resource format!");
        rw.Generate();
        rw.Close();
    }
}
           
       








Related examples in the same category

1.Writing a resource file programmatically.
2.Resource file generator