using System; using System.ComponentModel; using System.Windows.Forms; public class Form1 : Form { private void Form1_Load(object sender, EventArgs e) { string message = Resources.Strings.MyLocalizedString; MessageBox.Show(message); } }
using System.Drawing; using System.ComponentModel; using System.Windows.Forms; public class Form1 : Form { private void Form1_Load(object sender, EventArgs e) { Image myImage = (Image)Resources.ResourceManager.GetObject("MyImage", typeof(Image)); pictureBox1.Image = myImage; } }This example assumes that there is an image resource called MyImage in the resources of another assembly. Package library: System.Drawing.