c# yukarı doğru kayan yazı (slider from down to up). basic sample

 string icerik1=
"1111111111" + Environment.NewLine +
"2222222222" + Environment.NewLine +
"3333333333" + Environment.NewLine +
"4444444444" + Environment.NewLine +
"5555555555" + Environment.NewLine ;

private void Form1_Load(object sender, EventArgs e)
{

label1.Text = icerik1;
}

private void timer1_Tick(object sender, EventArgs e)
{
try
{
string str = label1.Text;
if (str == "")
{
label1.Text = icerik1;
}
//...............
string df = label1.Text.Remove(0, 10);
df = df.Remove(0, 2);//newline sil.

label1.Text = df;
}
catch (Exception )
{
timer1.Enabled = false;
return;
}
}

Yorumlar