Image Resources

So far, we have dealt with string resources but, like Win32 programs, .NET applications store images in resources for icons, backgrounds, and other things. Ultimately, the images get stored in the compiled .resource form, but, when you create them in Visual Studio or by hand, they are converted to the XML-based.resx form. Obviously, editing an image file as text in XML form is going to be no fun at all. The prescribed method for placing images in the resources is with the tools, such as VS.NET, provided by Microsoft.

A component, for example, might have an image as a background. You would place the component on the form and edit the component's background image property. The editor will allow you to select an image that is then ...

Get C# and the .NET Framework: The C++ Perspective now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.