请教高手,resources.GetObject("imlIcons.ImageStream") 出错. acptvb(微软全球技术中心 VB技术支持)
执行语句(VS自个儿生成的)
this.imlIcons.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imlIcons.ImageStream")));
错误:
An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an invocation.
同样的代码,在别人的机器上编译后我就能正常执行。我的编译出来咋不中咧!
还有在窗体的构造函数中加入System.Windows.Forms.Application.EnableVisualStyles();后,imagelist就不显示图片了!
怎么办啊