public void SetItem_IsHilo(string item) { if (IsHilos.InvokeRequired) { SetItemListDelegate delegado = new SetItemListDelegate(SetItem_IsHilo); IsHilos.Invoke(delegado, new object[] { item }); } else { IsHilos.AppendText(item + "\n"); } }
private void btnStop_Click(object sender, EventArgs e) { try { PararHiloSecundario(); idHilo = 0; } catch (Exception) { IsHilos.AppendText("Inicie un proceso\n"); } }