List Box and Select Raws

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have a list box containing values based on a query.
I need that if I click on a raw that is already been selected than the raw
shall be not selected anymore.

How to do that?
 
If you want the listbox to be multiselect (you can select more than one row
at a time), if you set it to Simple multiselect it will do as you ask.

If you have the listbox's multiselect set to None (you can only select one
row at a time), then place a button next to the listbox and clear the
listbox in the button's Click event. You could also use the Double Click
event of the listbox to clear the listbox's selection. (Me.lstMyListbox =
Null).
 
Back
Top