May 2006
Intermediate to advanced
1296 pages
23h 51m
English
A RESOURCE IS A NAMED PIECE OF DATA that is bound to an assembly at build time.[1] Resources are an extremely useful way to bundle arbitrary data such as text, graphics, and sounds into your applications and components for use at run time in tasks as diverse as setting the background image on a form and setting the label of a button. And because applications and components can find themselves being used in countries other than those in which they were written, resources also serve as the building block for internationalization to support no-compile deployment of localized resources.
Imagine setting the background image of a form by loading a bitmap from a file:
// MainForm.csnamespace ResourcesSample { partial class MainForm : Form { ...