.resources是.Net的资源文件
你可以使用System.Resources 命名空间下面的类来对资源文件进行处理ResourceManager 类使用户可以访问和控制在主程序集或在资源附属程序集中存储的资源。使用 ResourceManager.GetObject 和 ResourceManager.GetString 方法检索特定于区域性的对象和字符串ResourceWriter 以系统默认的格式将资源写入输出文件或输出流。 ResourceWriter 以系统默认的格式将资源写入输出文件或输出流。 
参考:读取资源文件:
http://cht.gotdotnet.com/quickstart/util/srcview.aspx?path=%2fquickstart%2fhowto%2fsamples%2fresources%2freadwriteresources%2freadwriteresources.src创建和使用资源:
http://cht.gotdotnet.com/quickstart/util/srcview.aspx?path=%2fquickstart%2fhowto%2fsamples%2fresources%2fcreateresources%2fcreateresources.src创建一个资源文件:
Imports System
Imports System.ResourcesPublic Class WriteResources
    
    Public Shared Sub Main()
        
        ' Creates a resource writer.
        Dim writer As New ResourceWriter("myResources.resources")
        
        ' Adds resources to the resource writer.
        writer.AddResource("String 1", "First String")
        
        writer.AddResource("String 2", "Second String")
        
        writer.AddResource("String 3", "Third String")
        
        ' Writes the resources to the file or stream, and closes it.
        writer.Close()
    End Sub
End Class读取一个资源文件:
Imports System
Imports System.Resources
Imports System.CollectionsPublic Class ReadResources
    
    Public Shared Sub Main()
        
        ' Opens a resource reader and get an enumerator from it.
        Dim reader As New ResourceReader("myResources.resources")
        Dim en As IDictionaryEnumerator = reader.GetEnumerator()
        
        ' Goes through the enumerator, printing out the key and value pairs.
        While en.MoveNext()
            Console.WriteLine()
            Console.WriteLine("Name: {0}", en.Key)
            Console.WriteLine("Value: {0}", en.Value)
        End While
        reader.Close()
        
    End Sub
End Class
更多内容:
ms-help://MS.VSCC/MS.MSDNVS.2052/cpref/html/frlrfSystemResources.htmms-help://MS.VSCC/MS.MSDNVS.2052/Cpqstart/html/cpsmpnetsamples-aspnetlocalization.htmms-help://MS.VSCC/MS.MSDNVS.2052/cpguide/html/cpcondesigningglobalapplications.htm

解决方案 »

  1.   

    //写资源
    ResourceWriter rw=new ResourceWriter("sample.resources");
    Bitmap b=new Bitmap("shy.gif");
    rw.AddResource("flag",b);
    rw.AddResource("name","Jack");
    rw.Generate();
    //读资源ResourceManager rm=new ResourceManager("sample",System.Reflection.Assembly.GetExecutingAssembly());
    string strname=rm.GetString("name",);
    Bitmap b=(Bitmap)rm.GetObject("flag");
    this.button1.Text=strname;
    this.pictureBox1.Image=b;
      

  2.   

    ResEditor.exe在你的.NET安裝目錄可以找到
      

  3.   

    两位说的是方法,我说一个用C#作出的成品(也有代码)Resource Editor .NET
    http://www.codeproject.com/cs/miscctrl/resource_editor.asp?target=resource