Dim Key1 As String
Dim Value1 As String
Dim ListItem1 As New ListViewItem
For index2 As Integer = 0 To OftenNumber1.Dictionary1.Count - 1
Key1 = OftenNumber1.Dictionary1.Keys(index2).ToString
Value1 = OftenNumber1.Dictionary1.Values(index2).ToString
ListItem1.Text = Key1
ListItem1.SubItems(0).Text = Value1
ListView1.Items.Add(ListItem1)
' ListView1.Items.Add(Key1)
' ListView1.Items(index2).SubItems(index2).Text = Value1
好几年前学的东西都被忘着一干二净。什么也记不起。 哪里出错误了?
------解决方案--------------------
对着呢!每次都要new下~