This is a C# .NET 4.0 application:
I\'m embedding a text file as a resource and then trying to display it in a dialog box:
var assembly = Assembl
The embedded file's "Build Action" property should be set as "Embedded Resource" to run the line, which is given below, properly:
Stream stream = assembly.GetManifestResourceStream(resourceName)
Right click on the file, click the property and then set "Build Action" property as "Embedded Resource":