文件名称:BossHook
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.2mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
在.Net2.0环境上开发WinForm程序,当在多线程中修改界面控件的状态,会抛出一个异常:Cross-thread operation not valid:Control textBox1 accessed from a thread other than the thread it was created on .后查询知道这是因为.net 2.0以后加强了安全机制,不允许在winform中直接跨线程访问控件的属性。到网上Google下,找到的解决方案有三种,现将这三种解决方案整理如下:
-In. Net2.0 environment WinForm development process, when in multi-threaded interface to modify the status of the control will throw an exception: Cross-thread operation not valid: Control ' textBox1' accessed from a thread other than the thread it was created on. After the query know that this is because. net 2.0 after the strengthening of the security mechanism does not allow cross-thread winform directly control the properties of the visit. Online at Google to find a solution there are three, now finishing the three solutions as follows:
-In. Net2.0 environment WinForm development process, when in multi-threaded interface to modify the status of the control will throw an exception: Cross-thread operation not valid: Control ' textBox1' accessed from a thread other than the thread it was created on. After the query know that this is because. net 2.0 after the strengthening of the security mechanism does not allow cross-thread winform directly control the properties of the visit. Online at Google to find a solution there are three, now finishing the three solutions as follows:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
BossHook/BossHook.opt
BossHook/Head.h
BossHook/BossHook.cpp
BossHook/BossSocket.h
BossHook/BossHook.dsp
BossHook/BossHook.dsw
BossHook/BossHook.ncb
BossHook/Debug/vc60.idb
BossHook/Debug/vc60.pdb
BossHook/Debug/BossHook.pch
BossHook/Debug/BossHook.obj
BossHook/Debug/BossHook.ilk
BossHook/Debug/BossHook.dll
BossHook/Debug/BossHook.lib
BossHook/Debug/BossHook.exp
BossHook/Debug/BossHook.pdb
BossHook/Debug/BossSocket.obj
BossHook/BossHook.plg
BossHook/BossSocket.cpp
BossHook/Debug
BossHook
BossHook/Head.h
BossHook/BossHook.cpp
BossHook/BossSocket.h
BossHook/BossHook.dsp
BossHook/BossHook.dsw
BossHook/BossHook.ncb
BossHook/Debug/vc60.idb
BossHook/Debug/vc60.pdb
BossHook/Debug/BossHook.pch
BossHook/Debug/BossHook.obj
BossHook/Debug/BossHook.ilk
BossHook/Debug/BossHook.dll
BossHook/Debug/BossHook.lib
BossHook/Debug/BossHook.exp
BossHook/Debug/BossHook.pdb
BossHook/Debug/BossSocket.obj
BossHook/BossHook.plg
BossHook/BossSocket.cpp
BossHook/Debug
BossHook
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.