Resource Files (. Resx). NET
resource files (with extrensión. Resx) may be useful in a project for multilingual applications or store data which vary in a reuse project.
To add a project file from Windows Explorer Solutions Visual Studio 2005 right click on the project -> Add -> New Item "and the window that appears choose" resource file. " Completed with the name you want to put and click add.
is added to the project. Xml file in which we can add different types of elements (strings, images, audio files). For string resources can add or edit a grid resources from completing the name, value and comment (optional).
The values \u200b\u200bof a resource file can be read by siguietne code: Dim
str as String str =
My . Resources.ArchivoDeRecursos.NombreRecurso Where "ArchivoDeRecursos" is the name of the resource file and "NombreRecurso" is the name of a string added to the resource file.
can also write in a resource file. For more information see the following links:
http://msdn.microsoft.com/es-es/library/ekyft91f (VS.80). Aspx
http://msdn.microsoft.com/es-es/library/system.resources.resxresourcereader (VS.80). aspx
0 comments:
Post a Comment