NASA's Spaceman
چهارشنبه 28 اسفند 1392, 15:37 عصر
سلام
امیدوارم خوشتون بیاد
فقط یه لیبل و تایمر میخواد
timer1.inteval=150
****
public Form1() {
InitializeComponent();
}
string text = "In the Name of God\nHappy new year\nand best wishes for all devloper in new year 2573\nWith Respect";
static int index = 0;
private void Form1_Load(object sender, EventArgs e)
{
label1.Text = "";
}
private void timer1_Tick(object sender, EventArgs e)
{
label1.Text = text.Substring(0, index) + "_";
index++;
if (index == text.Length + 1)
{
index = 0;
}
}
امیدوارم خوشتون بیاد
فقط یه لیبل و تایمر میخواد
timer1.inteval=150
****
public Form1() {
InitializeComponent();
}
string text = "In the Name of God\nHappy new year\nand best wishes for all devloper in new year 2573\nWith Respect";
static int index = 0;
private void Form1_Load(object sender, EventArgs e)
{
label1.Text = "";
}
private void timer1_Tick(object sender, EventArgs e)
{
label1.Text = text.Substring(0, index) + "_";
index++;
if (index == text.Length + 1)
{
index = 0;
}
}