Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > how to load resource from resource files
 

how to load resource from resource files

I have created a resource file. The resource file included some strings, images and wav.

I wondered how to use them by visual C# 2005.

I there any some class defined in .NET?

Or, some sample in MSDN?

jinjun  Monday, December 19, 2005 8:15 AM
Yes, there is a class called ResourceManager that will help you access those resources:

http://msdn2.microsoft.com/en-us/library/system.resources.resourcemanager.aspx

In fact, event WinForms are using ResourceManager class to retrieve culture specific resource your Form is using on runtime, includes Icons, Images, Strings etch.

Hope this helps,

-chris
Chris Vega  Monday, December 19, 2005 9:26 AM
Yes, there is a class called ResourceManager that will help you access those resources:

http://msdn2.microsoft.com/en-us/library/system.resources.resourcemanager.aspx

In fact, event WinForms are using ResourceManager class to retrieve culture specific resource your Form is using on runtime, includes Icons, Images, Strings etch.

Hope this helps,

-chris
Chris Vega  Monday, December 19, 2005 9:26 AM

You can use google to search for other answers

Custom Search

More Threads

• Class is not in the assembly
• xmlfile
• Wishlist
• Install Task Vision Server in a Domain
• RAR
• Cannot access a disposed object named "MainForm"
• Converting Windows Application to DLL
• Image Modifications
• how to get the service "startup type" from an external windows application
• Client found response content type of 'text/html-charset-ISO-8859-1' but expected 'text/Xml