2012-06-20 60 views

回答

3
Public str As String 
Public count As Integer 

Form1_Load的:

Label1.Text = "" 
count = 1 
str = ":D test 12345678910" 
Timer1.Enabled = True 

timer_tick:

If Label1.Text.Length = str.Length Then 
    Timer1.Enabled = False 
    Exit Sub 
End If 
Label1.Text = str.Substring(0, count) 
count = count + 1 

只使用定時器:)

+0

錯誤: 'Label1的' 未聲明。由於其保護級別,它可能無法訪問。 – BlackOpty

+0

添加標籤控制到你的表格 – nnm

+0

哎呀,現在它工作的很棒! – BlackOpty

0

聲明定時器:

對於每一個字符的字符串

console.writeline(人物)

//或者你可以寫這文本框。 Textbox.text = Textbox.text &字符

增加時間(可以設置每個字符之間的延遲)

末爲