PDA

View Full Version : آموزش: نوشتن کاراکتر به کاراکتر یه جمله طولانی فقط با یه تایمر



NASA's Spaceman
چهارشنبه 28 اسفند 1392, 14: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;
}
}

daniyaltjm
چهارشنبه 28 اسفند 1392, 14:53 عصر
این قسمتو خوب اومدی : in new year 2573

NASA's Spaceman
چهارشنبه 28 اسفند 1392, 16:38 عصر
ممنون
;)
الان یه سور باحال هم میسازم میزارم تو انجمن
از بس سرم شلوغ بود یادم می رفت
;)