作参考:
Private Sub Form_Load()
Combo1.AddItem "水果"
Combo1.AddItem "蔬菜"
Combo1.ListIndex = 0
End Sub
Private Sub Combo1_Click()
If Combo1.Text = "水果" Then
Combo2.Clear
Combo2.AddItem "苹果"
Combo2.AddItem "梨"
Combo2.ListIndex = 0
End If
If Combo1.Text = "蔬菜" Then
Combo2.Clear
Combo2.AddItem "白菜"
Combo2.AddItem "萝卜"
Combo2.ListIndex = 0
End If
End Sub