Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

.resx Files

A .resx file is a design-time format for producing .resources files. A .resx file uses XML and is structured with name/value pairs as follows:

<root>
  <data name="Greeting">
    <value>hello</value>
  </data>
  <data name="DefaultFontSize" type="System.Int32, mscorlib">
    <value>10</value>
  </data>
</root>

To create a .resx file in Visual Studio, add a project item of type “Resources File”. The rest of the work is done automatically:

  • The correct header is created.

  • A designer is provided for adding strings, images, files, and other kinds of data.

  • The .resx file is automatically converted to the .resources format and embedded into the assembly upon compilation.

  • A class is written to help you access the data later on.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial