计算机vb 这道题编程怎么写

第四题
2024-11-19 18:43:57
推荐回答(1个)
回答1:

Private Sub Command1_Click()

  For i = 1 To 10

    List1.AddItem "ABC" & i

  Next i

End Sub


Private Sub Command2_Click()

  For i = List1.ListCount - 1 To 0 Step -1

    List1.ListIndex = i

    List2.AddItem List1.Text

    List1.RemoveItem (i)

  Next i

End Sub