Resource Generator : Resource File : GUI Windows Forms C# Examples


C# Examples » GUI Windows Forms » Resource File »

 

Resource Generator









    
using  System;
using  System.Resources;
using  System.Drawing;
using  System.Windows.Forms;
using  System.Reflection;

class  MainClass
{
    static  void  Main(string[]  args)
    {
        
        ResourceWriter  rw;
        rw  =  new  ResourceWriter("myResources.resources");

        rw.AddResource("YourImage",  new  Bitmap("YourFile.Bmp"));

        rw.AddResource("welcomeString",  "Welcome  to  .NET  resources.");
        rw.Generate();
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo GUI Windows Forms
» Resource File