Had a problem loading a resource using the (Type, string) constructor of a graphic type, Bitmap in this case. Had the correct syntax and could not work out why it would not load. Finally I noticed that the graphic had been added to the project file but it must be set as a '
Embedded Resource' in the 'Build Action' property of the resource in Solution Explorer. MSDN does not explain how the 'Type' parameter is used for loading the resource. However the latest version of MSDN, msdn2.microsoft.com gives a better description. Simply search on '
No comments:
Post a Comment