Click to See Complete Forum and Search --> : Resources in C#(.NET)


chetan_mnit2003
August 7th, 2006, 02:53 AM
Hi All,
Is there any tutorial for how to use the resources in .NET(C#). Most of the tutorials use the command prompt for attaching the resources with the assembly. How we can do that directly from .NET Editor.

jhammer
August 7th, 2006, 05:49 AM
There are several ways to do this.
One is to add the file you want to use as resource to your Project, and then set the property Build Action (point on the file and see the Properties Grid) to Embedded Resource.

Next you can use the Resources tab of the Project Properties page (in 2005). There is a very nice GUI to add images/strings/a lot of other types to your resources, either by creating them, adding files and more.
You can access the resources by using the Properties.Resources class generated for you. VERY NICE.

aniskhan
August 7th, 2006, 09:10 PM
Embedded Resources (http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=75)