using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Control.CheckForIllegalCrossThreadCalls = false;
}
private void Form1_Load(object sender, EventArgs e)
{
}
int i = 1;
//声名线程
Thread t1;
private void button1_Click(object sender, EventArgs e)
{
t1 = new Thread(new Mylabel(this.label2).setLabel);
t1.Start();
//主线程等待时间
t1.Join(10);<