Listbox problemo

DR00ME

Well-known member
Joined
Feb 6, 2004
Messages
169
Location
Finland
Code:
lstRGB.SetSelected(lstHSL.SelectedIndex, False)

this doesnt work...

If I select a field in lstHSL I want lstRGB to select the same indexed field too. How do I do it ?

P.S. when u select something it is highlighted as blue.
 
Last edited by a moderator:
:D :D :D LOL .... yeah now it works when I changed it to true... this is the declaration: lstHSL_SelectedIndexChanged

oh and there is one little problem ...it works now until I use the scrollbar ...when i click it a few times in listbox2 ... and then select something ...listbox1 selected item is in a wrong place ...
 
Are you trying to make the selection in listbox1 line up with the selection in listbox2?
Well, in the SelectedIndexChanged event of the listbox, change the TopIndex properties so that they match. :)
 
Back
Top