如题,我好像一直报错
解决方案 »
- WinForm SqlDataAdapter 和 DataGridView 的问题
- 求正则表达式替换:Regex.Replace的一个方法......高分呀!
- C#動態打開窗體
- 检测到无法访问的代码
- 问:如何获得网站访问记录
- 引发类型为“System.Windows.Forms.AxHost+InvalidActiveXStateException”的异常。
- 谁能告诉我C#中怎样判断自己的网段,也就是子网掩码
- C#修改App.config以后,如何再次启动啊
- 为什么com组件会造成dll hell而.net组件不会
- 一个获取id的问题,请各位帮帮忙!
- 请问如何将字符串以二进制存储到SQL数据库中,再从数据库中以字符格式读出来
- 技术难题,希望高手能够解决~~
Cross-thread operation not valid: Control 'textBox4' accessed from a thread other than the thread it was created on.但是,我想要在线程里面对UI操作怎么办?比如我要对开5个thread,作下载,要在listview里面写提示语句:如线程1开始下载,线程2下载完毕。怎么做啊?
//声明一个URL委托
private delegate void ShowURLdelegate(string Info);
//定义一个URL委托对象
private ShowURLdelegate URLdelegate;
private void ShowURL(string Info)
{
currentURL.Text=Info;
}
public void InvokeShowURL(string Info)
{
this.BeginInvoke(URLdelegate,new object[]{Info});
}在你的线程里调用InvokeShowURL就行了