如题?
解决方案 »
- C#中两个dateTimePicker控件 让其中一个为当前时间 如何改另一个使它跟当前时间相差7天
- 数据集填充数据的问题
- 让页面不显示状态栏,菜单栏,工具栏
- C# 客户端验证问题
- 内存不能释放,怎么办
- 如何校验是否输入全角字符!
- DataTable 绑定 DataGridView 删除记录问题 windowForm 程序
- c#如何操作NTFS权限?
- 在线:DataGrid列中,将过长的字符显示为...号,怎么做!???
- 急!程序在关闭的时候出现的错误
- The underlying connection was closed: Unable to connect to the remote server
- 如何通过控件名对控件进行操作?[急]
if(线程1运行)
执行线程2
if(线程2运行)
执行线程3
..................
不知还有没有更好的
bool btag = false;
……
thread th1 = new thread(new ThreadStart(this.Fun1));
thread th2 = new thread(new ThreadStart(this.Fun2));
th1.start();
btag = true;
if(!btag)
{th2.start();}
……
private void Fun1()
{
//TODO
btag = false;
}