[spoiler=Direto do programa]
[spoiler=Direto do programa]
Public Class Form1
Private Script As New List(Of String)
Sub New()
InitializeComponent()
Control.CheckForIllegalCrossThreadCalls = False
Label1.Text = Nothing
Script.AddRange({"Prepare-se para o enem isso irá poder te ajudar, tal tal tal tal",
"Aqui vai algumas dicas que poderão ser úteis",
"E assim continuaria no looping, até o fim do meu texto."})
Dim X As New Threading.Thread(AddressOf ShowText)
X.Start()
End Sub
Private Sub ShowText()
For P = 0 To Script.Count - 1
Label1.Text += Script.Item(P) & vbNewLine
Threading.Thread.Sleep(5000)
Next
Label1.Text += "- Texto completo -"
End Sub
End Class
[spoiler=Usando texto de um arquivo txt]
[spoiler=Usando texto de um arquivo txt]
Public Class Form1
Sub New()
InitializeComponent()
Control.CheckForIllegalCrossThreadCalls = False
Label1.Text = Nothing
Dim X As New Threading.Thread(AddressOf ShowText)
X.Start()
End Sub
Private Sub ShowText()
Dim F As IO.StreamReader = New IO.StreamReader("C:\Users\???\Desktop\Script.txt")
Do While Not F.EndOfStream
Label1.Text += F.ReadLine & vbNewLine
Threading.Thread.Sleep(5000)
Loop
End Sub
End Class