C# resource

kcwallace

Centurion
Joined
May 27, 2004
Messages
175
Location
Austin, TX
Can someone tell me how to use an embedded resource at runtime using C#?

the VB.Net method is:

Visual Basic:
My.Resources.resourceName
 
C#:
Properties.Resources.resourceName;

or if you are adding in a resx file rather than using the default one just ResourceFileName.resourceName.

i.e. Given a file Errors.resx with a resource called FileNotFound use
C#:
Errors.FileNotFound
 
Back
Top