Add image Resource : ResXResourceWriter : GUI Windows Form C# Source Code


Custom Search

C# Source Code » GUI Windows Form » ResXResourceWriter »

 

Add image Resource








    


using System;
using System.Collections.Generic;
using System.Text;
using System.Resources;
using System.Drawing;

class Program
{
  static void Main(string[] args)
  {
    ResXResourceWriter rw = new ResXResourceWriter("Demo.resx");
    using (Image image = Image.FromFile("logo.gif"))
    {
      rw.AddResource("WroxLogo", image);
      rw.AddResource("Title", "C#");
      rw.AddResource("Chapter", "L");
      rw.AddResource("Author", "C");
      rw.AddResource("Publisher", "W");
      rw.Close();

    }
  }
}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo GUI Windows Form
» ResXResourceWriter