资源:
internal static System.Drawing.Bitmap progressBar_BackgroundPicture {
get {
object obj = ResourceManager.GetObject("progressBar_BackgroundPicture", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}使用 : System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));this.progressBar.BackgroundPicture = ((System.Drawing.Image)(resources.GetObject("progressBar.BackgroundPicture")));单步调试的时候运行到这里就报:在 System.IO.FileNotFoundException 中第一次偶然出现的“mscorlib.dll”类型的异常
在 System.IO.FileNotFoundException 中第一次偶然出现的“mscorlib.dll”类型的异常
在 System.UnauthorizedAccessException 中第一次偶然出现的“mscorlib.dll”类型的异常
在 System.UnauthorizedAccessException 中第一次偶然出现的“mscorlib.dll”类型的异常
在 System.UnauthorizedAccessException 中第一次偶然出现的“mscorlib.dll”类型的异常
折腾2天了。请各位大虾帮忙分析一下可能的原因 。多谢!
internal static System.Drawing.Bitmap progressBar_BackgroundPicture {
get {
object obj = ResourceManager.GetObject("progressBar_BackgroundPicture", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}使用 : System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));this.progressBar.BackgroundPicture = ((System.Drawing.Image)(resources.GetObject("progressBar.BackgroundPicture")));单步调试的时候运行到这里就报:在 System.IO.FileNotFoundException 中第一次偶然出现的“mscorlib.dll”类型的异常
在 System.IO.FileNotFoundException 中第一次偶然出现的“mscorlib.dll”类型的异常
在 System.UnauthorizedAccessException 中第一次偶然出现的“mscorlib.dll”类型的异常
在 System.UnauthorizedAccessException 中第一次偶然出现的“mscorlib.dll”类型的异常
在 System.UnauthorizedAccessException 中第一次偶然出现的“mscorlib.dll”类型的异常
折腾2天了。请各位大虾帮忙分析一下可能的原因 。多谢!
解决方案 »
- c#仿qq2011关闭按钮
- Lst泛型的数据相互相加
- C#操作Excel新添加右键菜单项的问题(Winform)
- Socket BeginReceive 异步接收问题。代码相当短,请进来看看。
- 能不能直接获得windows的“关于”对话框
- Socket和TcpClient怎样才能知道跟对方断开了没有?(高分)
- 为什么我在C#区大都看不懂大家发的帖子呢?
- iBatis.net中使用System.Transaction时报错不能连接数据库
- Net Reactor怎样才可以直接加密而不生成备份文件?
- 在C#下编写的程序如何在一台没装Visiual Studio.net的机器上运行?
- 会循环引用?
- wince在加载资源里面的图片时出错。各位大虾就命!
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) http://feiyun0112.cnblogs.com/
是找不到资源, 改为
this.progressBar.BackgroundPicture = application.Properties.Resources.progressBar_ForegroundPicture;
这个问题就没了 在 System.UnauthorizedAccessException 中第一次偶然出现的“mscorlib.dll”类型的异常
是说权限问题吧?? 权限问题怎么设置