窗体上有名称为Command1的命令按钮,名称分别为List1、List2的列表框,其中List1的MultiSelect属性设置为1(Simple),并有如下事件过程: Private Sub Command1_Click() For i=0 To List1.ListCount-1 If List1.Selected(i)=True Then List2.AddItem Text End If
A.将For循环的终值改为List1.ListCount B.将List1.Selected(i)=True改为List1.List(i).Selected=True C.将List2.AddItem Text改为List2.AddItem List1.List(i) D.将List2.AddItem Text改为List2.AddItem List1.ListIndex