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 WindowsApplication4
{
public partial class Form1 : Form
{
private Form2 frm= new Form2();
public Form1()
{
InitializeComponent();
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication4
{
public partial class Form2 : Form
{
delegate void SetLableTextCallback(string str);
public Form2()
{
InitializeComponent();
}
public void SetLableText(string str)
{
if (label1.InvokeRequired)
{
SetLableTextCallback d = new SetLableTextCallback(SetLableText);
this.Invoke(d, new object[] { str });
}
else
{
label1.Text = str;
}
}
private void Form2_Load(object sender, EventArgs e)
{