namespace _4.×××燈練習_2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
//Labei名字用五角星☆★☆★☆★☆★☆★☆★☆★
//在Timer事件中,將五角星第一位截取放置到最後一位,第二位五角星變成第一位
//當在極短的時間內進行循環截取時,五角星看上去就跑起來了
label1.Text = label1.Text.Substring(1) + label1.Text.Substring(0, 1);
}
}
}