У меня есть некоторый код на c # для перемещения текста, например, тега выделения в HTML.Я хотел бы переместить 2-й текст после 1-го текста, когда он не исчезнет.
string[] ss;
int index = 0;
private void timer1_Tick(object sender, EventArgs e)
{
if (clsBas.SCREEN_TEXT != "") //multiline text
{
lblScreenText.Text = ss[index];
if (lblScreenText.Left < 0 && (Math.Abs(lblScreenText.Left) > lblScreenText.Width))
{
lblScreenText.Left = 1920;//panel width
index++;
}
lblScreenText.Left = lblScreenText.Left - 15;
if (index == ss.Length)
{
index = 0;
}
}
}