I have a Label, whose content is displayed by a while loop. when i display a text in label, it displays correctly. sometime minutes, the same text displayed in the same label, and the size of the text in the control changes.
Here is the code :
//Form_Load :
Thread t = new Thread(displaySentences);
t.Start();
//display sentences:
void displaySentences()
{
while(true)
{
if(i>=5)
i=0;
label4.Text = textarray[i];
i++;
}
}
the size of the text in the first iteration(i=0) is different from the size of the text in the label control in the second iteration.