0

I have a problem, I need to add raw file resource to the .NET Framework v1.0 application, but I can't find any information of how to do it (is it even possible for this oldie?). YES that must be for .NET Framework 1.0. Also how to read those resources, global::namespace.resources.NameOfTheResource seems to be not implemented in this .NET Framework. Any help?

4

1 に答える 1

2

ResssourceManagerクラスを使用できます。

    ResourceManager resourceManager = new ResourceManager ("MyCompany.MyProject.SomeResources", GetType ().Assembly);

    Bitmap image = (Bitmap)resourceManager.GetObject ("MyBitmapName");

リンク : http://www.jelovic.com/articles/resources_in_visual_studio.htm

于 2012-09-10T08:05:03.100 に答える