private Imagelist _imagesToolbar16 = null;protected void LoadResources()
{
_imagesToolbar16=ResourceHelper.LoadBitmapStrip(this.GetType(),
"MainSystem.toolbar16.bmp",
new Size(16,16),
new Point(0,0));
}运行函数是,,确提示,
未处理的“System.ArgumentException”类型的异常出现在 system.drawing.dll 中。
其他信息: “null”不是“stream”的有效值。
请问应该如何解决!!!!!
{
_imagesToolbar16=ResourceHelper.LoadBitmapStrip(this.GetType(),
"MainSystem.toolbar16.bmp",
new Size(16,16),
new Point(0,0));
}运行函数是,,确提示,
未处理的“System.ArgumentException”类型的异常出现在 system.drawing.dll 中。
其他信息: “null”不是“stream”的有效值。
请问应该如何解决!!!!!
using Crownwood.Magic.Common;
引用得到的
1、选择图片(资源文件),右键选择属性
2、build action 选择“Embedded Resource”(嵌入式资源)
即可。