Public Class Form1 Dim Numeros(9) As Integer Dim Poscicion As Integer Dim recorido As Integer Dim texto As String Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles numero.TextChanged End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If Poscicion <= 9 Then Numeros(Poscicion) = Val(numero.Text) Poscicion = Poscicion + 1 numero.Clear() Else MsgBox("los datos estan llenos") End If For i As Integer = 0 To Numeros.Length - 1 texto = Numeros(i).ToString() & vbCrLf Next Lista.Text = 0 End Sub End Class