public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private delegate void MostarEtiqueta(string et);
private void button1_Click(object sender, EventArgs e)
{
Thread hilo = new Thread(cuenta);
hilo.Start();
}
private void etiqueta(string et)
{
label1.Text = et;
}
private void cuenta()
{
for (int i = 0; i < 70000; i++)
{
label1.Invoke(new MostarEtiqueta(etiqueta), new object[] { i.ToString() });
}
}
}