在主线程外的线程中不要用诸如单线程采用的
MessageBox.Show("hello:" + dt.Rows[i]["title"].ToString() + "\n" + dt.Rows[0]["content"].ToString(), "hello");方法这样会出问题的。你可以通过控件的异步调用方法Invoke()来显示线程 发出的消息
MessageBox.Show("hello:" + dt.Rows[i]["title"].ToString() + "\n" + dt.Rows[0]["content"].ToString(), "hello");方法这样会出问题的。你可以通过控件的异步调用方法Invoke()来显示线程 发出的消息
解决方案 »
- 关于c#属性和集合的不解,拜求高手解答!求详解!
- 一道算法题,自己想出来的,求答案!
- VS安装包如何将应用程序文件夹下面的文件,安装时复制到system32下面
- 微软的数据同步框架 Microsoft Sychronization Framework 2.0
- 求字符串加密方法
- 怎么样将byte[]里的emf格式的图片读取到matefile中
- Grid中显示图片
- 新手提问:C#里如何把几个textbox的数据写入表里的几个字段?
- 请问在winform中能否使用 excel active,如果可以请看
- 求一段正则表示式程序,,,,提取字符串中内容。
- c#的Socket问题
- 求救,关于在 windows 2003 服务器下配置 asp.net 2.0 连接 oracle 的连接字符串
you can define a queue that save the message the other thread sends,then create a thread watch over this thread ;;;;