參考2
--
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim olist As New List(Of String)
For i As Integer = 0 To 10
olist.Add(i.ToString)
Next
ListBox1.Items.Clear()
For i As Integer = 0 To olist.Count - 1
ListBox1.Items.Add(olist.Item(i).ToString)
Next
End Sub
End Class
沒有留言:
張貼留言