Windows Forms 2.0 Programming (Microsoft .NET Development Series)

13. Resources

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.

[1] Recall from Chapter 1: Hello, Windows Forms that a .NET assembly is either an executable (.exe) or a library (.dll).

Категории