سلام.
در محیط کنسول از این روش:
using System;
using System.Threading;
static void Main(string[] args)
{
bool b = true;
int index = 0;
string str = "Your Text";
while (b)
{
Thread.Sleep(500);
Console.Write(str[index++]);
if (index == str.Length)
b = false;
}
}
و در محیط winform میتونید از این روش استفاده کنید(با استفاده از تایمر):
private void btnType_Click(object sender, EventArgs e)
{
timer1.Start();
}
string str = "متن مورد نظر شما";
int Count = 0;
private void timer1_Tick(object sender, EventArgs e)
{
Count++;
textBox1.Text = str.Substring(0, Count);
if (Count == str.Length)
{
timer1.Stop();
Count = 0;
}
}