Skip to Content
Windows Forms 2.0 Programming
book

Windows Forms 2.0 Programming

by Chris Sells, Michael Weinhardt
May 2006
Intermediate to advanced
1296 pages
23h 51m
English
Addison-Wesley Professional
Content preview from Windows Forms 2.0 Programming

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.

Resource Basics

Imagine setting the background image of a form by loading a bitmap from a file:

// MainForm.csnamespace ResourcesSample {  partial class MainForm : Form { ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

CDO & MAPI Programming with Visual Basic:

CDO & MAPI Programming with Visual Basic:

Dave Grundgeiger
Professional Visual Basic 2012 and .NET 4.5 Programming

Professional Visual Basic 2012 and .NET 4.5 Programming

Bill Sheldon, Billy Hollis, Rob Windsor, David McCarter, Gastón Hillar, Todd Herman

Publisher Resources

ISBN: 0321267966Purchase book