Current location - Education and Training Encyclopedia - Education and training - Changes of combo drop-down content in VB (non-editable)
Changes of combo drop-down content in VB (non-editable)
Personally, I suggest using the SELECT CASE statement.

The writing is more concise and clear.

Combo 1 (province selection) combo2 (city selection)

Private Subgroup 1_click ()

Combination 2. "Clear" knows the contents of the last secondary event combination 2.

Select case combination 1. text

Case "Jiangsu"

Combination 2. AddItem "Nanjing"

Combination 2. AddItem "Suzhou"

Case "Beijing"

Combination 2. AddItem " "

End selection

End joint

But do any prawns know more about easy? ! !