Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42292

Highlight Values of listbox

$
0
0
Dears,

I want that list box highlight the exact value which I select from Combo Box.
Code:

    With cmb1
        .AddItem "A"
        .AddItem "B"
        .AddItem "C"
        .AddItem "D"
        .AddItem "E"
        .AddItem "F"
        .AddItem "G"
    End With
   
    With lst1
        .AddItem "F"
        .AddItem "A"
        .AddItem "D"
        .AddItem "C"
        .AddItem "B"
        .AddItem "G"
        .AddItem "E"
    End With

As shown above, if I select "D" from combo box, it automatically get highlighted in Listbox.

Anyway to do this ?

Viewing all articles
Browse latest Browse all 42292

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>