Private Sub Form_Load()
List1.AddItem "C程序设计"
List1.AddItem "VB程序设计"
List1.AddItem "JAVAR程序设计"
List1.AddItem "数据库"
List1.AddItem "大学计算机基础"
List1.AddItem "网页设计"
End Sub
Private Sub List1_Click()
If List2.ListCount = 5 Then
MsgBox "程程已满"
Else
List2.AddItem List1.Text
List1.RemoveItem List1.ListIndex
End If