because datagrid databinding issue and a control's method can only be invoked from the thread that created the control, use a control's Invoke or BeginInvoke method to invoke a method on the GUI thread, 参考http://groups.google.com/groups?q=datagrid+multithreading+add+row&hl=en&lr=&selm=6fr7sGBjEHA.2516%40cpmsftngxa10.phx.gbl&rnum=2also seeSafe, Simple Multithreading in Windows Forms, Part 2
http://msdn.microsoft.com/library/en-us/dnforms/html/winforms08162002.asp?frame=trueSafe, Simple Multithreading in Windows Forms, Part 3
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms01232003.asp
http://msdn.microsoft.com/library/en-us/dnforms/html/winforms08162002.asp?frame=trueSafe, Simple Multithreading in Windows Forms, Part 3
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms01232003.asp
解决方案 »
- 关于正则表达式的问题!
- 如何实现像MSN和qq那从客户端直接登陆到WEB页?
- dataview使用sort方法排序后,删除数据发生问题
- 使用 Using 的时候,放在 namespace 里面和外面有什么区别?
- 用c#考试系统,考题,和答案用什么控件好,请大家给点建议,多谢了
- 急!请问怎么向数据库表中插入一个空值?要插入的字段是设为了INT型的!
- 100分求图片上传解决方法!!解决给分
- 关于在C#中获取控件句柄的方法,高手请进!!!
- visual studio .net2005调试不了出现“试图运行项目时出错,无法启动调试,绑定句柄无效”
- 大虾帮忙!用StreamReader读文件,中文显示为乱码,如何解决啊?
- 怎样判断一个网页是否存在?
- TreeView + ContentMenu 相关
无聊就接分来了