文件名称:BossHook
- 所属分类:
- 钩子与API截获
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1.2mb
- 下载次数:
- 0次
- 提 供 者:
- bos***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
在.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.cpp
........\BossHook.dsp
........\BossHook.dsw
........\BossHook.ncb
........\BossHook.opt
........\BossHook.plg
........\BossSocket.cpp
........\BossSocket.h
........\Debug
........\.....\BossHook.dll
........\.....\BossHook.exp
........\.....\BossHook.ilk
........\.....\BossHook.lib
........\.....\BossHook.obj
........\.....\BossHook.pch
........\.....\BossHook.pdb
........\.....\BossSocket.obj
........\.....\vc60.idb
........\.....\vc60.pdb
........\Head.h
........\BossHook.cpp
........\BossHook.dsp
........\BossHook.dsw
........\BossHook.ncb
........\BossHook.opt
........\BossHook.plg
........\BossSocket.cpp
........\BossSocket.h
........\Debug
........\.....\BossHook.dll
........\.....\BossHook.exp
........\.....\BossHook.ilk
........\.....\BossHook.lib
........\.....\BossHook.obj
........\.....\BossHook.pch
........\.....\BossHook.pdb
........\.....\BossSocket.obj
........\.....\vc60.idb
........\.....\vc60.pdb
........\Head.h