Private Sub Combo1_Click()
'方法一
'If Combo1.Text <> "" Then
'
If Combo1.Text = "收入" Then
'
Combo2.Clear
'
Combo2.AddItem "收入1"
'
Combo2.AddItem "收入2"
'
Else
'
Combo2.Clear
'
Combo2.AddItem "支出1"
'
Combo2.AddItem "支出2"
'
End If
'End If
'方法二
If Combo1.Text <> "" Then
Combo2.Clear
Combo2.AddItem Combo1.Text & "1"
Combo2.AddItem Combo1.Text & "2"
End If
End Sub
Private Sub Form_Load()
Combo1.Clear
Combo1.AddItem "收入"
Combo1.AddItem "支出"
End Sub
基础程序,关键是你自己要琢磨。这个程序没什么好解释的。