Resize a label
I have a label whose contents are displayed in a while loop. when i display the text in the label it displays correctly. minutes, the same text appears on the same label, and the text in the control is resized.
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.
0
a source to share
2 answers