用户界面设计
窗体上有一个名称为Combo 1的组合框, 要求在其编辑区输入文本并按回车键后,编辑区中的文本被添加到列表中。下面能实现这一功能的是A.Private Sub Combo 1_KeyDown(KeyCode AsInteger,Shift As Integer)
If KeyCode = 13 Then
Combo 1.AddItem
Combo 1.Text
End If
End Sub
B.Private Sub Combo 1_KeyDown(KeyCode AsInteger,Shift As Integer)If KeyCode = 13 ThenCombo 1.Addl tem Text 1.TextEndIfG
End Sub
C.Private Sub Combo 1_Click()
Combo 1.Add Item Combo 1.Text
End Sub
D.Private Sub Combo 1_Click()
Combo 1.Add Item Text 1.Text
End Sub