Reading from a String Resource : ResourceManager « GUI Windows Form « C# / C Sharp






Reading from a String Resource

Reading from a String Resource
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Resources;
using System.Reflection;
   
public class MainForm
{
    public static void Main()
    {
        ResourceManager FormResources = new ResourceManager("StringTable", Assembly.GetExecutingAssembly());
        string          Message;
        
        Message = FormResources.GetString("Message");
        MessageBox.Show(Message);
    }
}
           
       








Related examples in the same category