how to use resources in c# ?

Add your images to your project, click on the image in the solution explorer, then in properties window click on Build Action and then from the combo box at right choose Embedded Resource.
To get the resource to use in your app do this:
C#:
System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream("ProjectNamespace.ResourceNameAnd Extension");
This will return a stream that will contain the resource you specified.
 
Back
Top