I have a problem with a Windows Form Application in C# Inside This application there is a Tabbed Browser. Now i want that in a loop (where i do some operation to calculate the next url) i could add a delay between AddTab.
页: 1
foreach(Urls url in Links){
// Do something with url
if(url.Host == "google"){ //if host is google until start the
// next AddTab i would wait 5 SEC
addTab(url);
//Here i Tried to use Sleep Thread , While(TimeCur-TimePre) {} but i always
// get Freezing and the other Tabs dont continue the loading
Wait 5 Seconds in somehow
}
}
正如我写的“一心一意想要使用睡觉”,它冻结了我的表格应用。 我已经利用了与时日Saved+(x Second)的时间交接,但这也冻结了形式。
我看到许多人说是使用Timers,因此,我试图使用这些话题(没有结果,可能是错误的东西)。
在此 lo中,我可以补充的是,在不冻结任何东西的情况下,推迟在AddTab之间开放?