Berkoslova adlı üyeden alıntı: mesajı görüntüle
TİMER İÇİNDE:
for (int i = 0; i < 10; i++)
{
ss++;
yazi2 = oku2.ReadLine().ToLower();
int c = yazi2.IndexOf("tel");
int x = yazi2.IndexOf("x-ablabel");
if (c == -1)
{}
else
{
if (x==-1)
{
yazi2 = yazi2.Replace("tel:", "");
yazi2 = yazi2.Replace("item1.", "");
yazi2 = yazi2.Replace("tel.type", "");
ibo++;
richTextBox1.Text += yazi2 + "n";
}

}
label4.Text = richTextBox1.Lines.Length.ToString();

}
timer içinde bu for kodunu koydum. normalde tak tak giden timer yavaş işliyor. Bu klasik aratma,

Threading içindek for veya while
if (Regex.Match(yazi2, "tel").Success && !Regex.Match(yazi2, "x-ablabel").Success)
                    {

                        yazi2 = yazi2.Replace("tel:", "");
                        yazi2 = yazi2.Replace("item1.", "");
                        yazi2 = yazi2.Replace("tel:type", "");


                        ibo++;
                        this.Invoke((MethodInvoker)(() => richTextBox1.Text += (yazi2) + "n"));


                        //this.Invoke((MethodInvoker)(() => label2.Text = s++.ToString()));
                        this.Invoke((MethodInvoker)(() => label4.Text = ibo.ToString()));


                    }
txt nin satırı 30bin yakın.

işlemcim veya pc de çöp değil.




düşünceniz nedir.
objelerle döngü bittikten sonra işlem yap. görsele müdahale etme