How to change a list view from a Combo in VB6

0

I made a form with a ListView and a ComboBox , my problem is that according to what is selected in ComboBox I have to change the data of ListView .

For example: I have ListView LETRAS (which is already loaded with values in Load_Form ) and a Type combo (consonants and vowels), if in the combo I select 'vowels' i, o, u 'na ListView .

    
asked by anonymous 24.04.2014 / 16:05

1 answer

1

You should use combo box events to do this. Create a method to populate the listview type

Private Sub PopularListView(ByVal letra As String)
    'Adicionar as linhas conforme a letra passada por parâmetro
End Sub

Then call this method in the Change event of the combobox:

Private Sub Combo_Change()
    Call PopularListView(Combo.Text)
End Sub

That's the way it is.

    
24.04.2014 / 18:10