The .NET Framework 2.0 and Visual Studio 2005 support a concept of strongly typed resources. So instead of writing this: MessageBox.Show(resourceManager.GetString("InsufficientFunds")); You can write this: MessageBox.Show(Form1Resources.InsufficientFunds); You gain several benefits from this. The resource entry name is checked at design time instead of runtime, so typos are eliminated. The property is strongly typed, which gives compile-time type checking. The resource class (Form1Resources, in this example) encapsulates the ResourceManager, so it is not necessary to manage it yourself. Strongly-typed resources are initially covered in Chapter 3 but are also covered again in several other chapters. If you are staying with the .NET Framework 1.1, see the "Strongly-Typed Resources in the .NET Framework 1.1" section in Chapter 3 for an equivalent solution. |