【正确答案】正确答案:(1)根据题意,新建“标准EXE”工程,将一个列表框控件和一个文本框控件添加到窗体中,列表框控件名称为Listl,文本框控件名称为Textl。双击进入代码窗口,编写如下代码: Private Sub Form MouseDown(Button As Integer, Shift As Integer,X As Single,Y As Single) If Button=1 Then Textl.Text=InputBox("请输入要添加的项目") Listl.Addhem
Textl.Text
End If If Button=2 Then Textl.Text=InputBox("请输入要删除的项目") For i=0 To Listl.
ListCount-1
If Listl.List(i)=Textl.Text Then Listl.RemoveItem i End If Next i End If End Sub 单击
