wpf 线程 wpf不知道怎么实现只知道winform下的实现方法。。在新线程里用委托实现对label.Text的更改 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Task.Factory.StartNew(()=>{ int count=5; while(count>=0) { this.Invoke(new Action(()=> { lable.Text=count.toString(); })); count--; Thread.Sleep(1000); } this.Invoke(new Action(()=> { lable.Text="加载"; }));}); Thread ths = new Thread(()=>{ Thread.Sleep(5000); textbloc.Text = "加载";});ths.IsBackground = True;ths.Start(); Task.Factory.StartNew(()=> { Thread.Sleep(5000); this.Invoke(new Action(()=> { label.Text="加载"; })); }); 关于调用dll里方法的怪现象 [在线等]想了解framework框架与visual studio的实现该看哪本书? 下面的文件夹该怎么删除 请教一个简单的数组问题 求一个示例 关于Graphics的一个问题 如果一颗树,他的分支是不确定层也是不确定的,这种树... 牛人们 ,救救我啊 我的卸了水晶报表9.0然后再装上9.2后Crystal_Managed2003.msm在机子内找不到了。 c#,请教这些接口的关系 socket编程,防火墙打开了就无法通信,怎么解决 用adapter绑定的comboBox控件里的数据,如何获取其选中项ValueMember??
{
int count=5;
while(count>=0)
{
this.Invoke(new Action(()=>
{
lable.Text=count.toString();
}));
count--;
Thread.Sleep(1000);
}
this.Invoke(new Action(()=>
{
lable.Text="加载";
}));
});
Thread.Sleep(5000);
textbloc.Text = "加载";
});
ths.IsBackground = True;
ths.Start();
{
Thread.Sleep(5000);
this.Invoke(new Action(()=>
{
label.Text="加载";
}));
});