C#??????÷?????????
???????????? ???????[ 2013/10/17 11:28:38 ] ????????
????//??Щ?? C#?????· ????? java???????????
using System.Threading; //???????
namespace Test
{
public partial class Form1 : Form
{
public Form1()
{
Form.CheckForIllegalCrossThreadCalls = false; //??????????????????????????е??????м??
InitializeComponent();
}
Thread t; //??????????
private void Form1_Load(object sender?? EventArgs e)
{
t = new Thread(new ThreadStart(sendDate));
t.Start(); //??????
}
public void sendDate() //???????????
{
int num=0;// ???? ???????
if(check())//???????????
{
while (true) //?????е????
{
for (int i = 0; i < 9; i++)
{
num++;
Thread.Sleep(1000); //1000????1???????? ?????????????????
//??????д??????????? ?磺
cilent();//????1?? ???1??cilent()????
if(num>9)
{
t.Abort();//???е??????9?????????????????? ???????? ????????????
num=0;
}
}
}
}
}
private void cilent()
{
MessageBox.Show("????????????Σ?");
}
}
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11