Private Sub Command1_Click() List1.RemoveItem List1.ListIndex End Sub
Private Sub Command2_Click() List1.Clear End Sub
Private Sub Form_Load() Randomize Form1.Caption = "列表框应用" Command1.Caption = "删除" Command2.Caption = "清除" For i = 1 To 8 x = Int(Rnd * 90) + 10 List1.AddItem x Next i End Sub