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.
Printable View
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.
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.