>Hi,
>
>I have a listbox with the Multiselect option enabled. I want the user to
>be
>able to select multiple items without pressing the CTRL key. When a user
>clicks on an item, it should toggle from an unselected state to selected
>state and vica versa. Is there any way to do that? I tried putting this
>code in the click event of the Listbox without much success.
>
>if this.ListIndex>0
> this.Selected(this.ListIndex) = !this.Selected(this.ListIndex)
>endif
>
>But all this code does is to position the cursor in the listbox to the
>lastitem without doing any multiple selections. I am using VFP 9.0 BTW.
i also tried:
if this.ListIndex>0
this.Selected(this.ListIndex) = !this.Selected(this.ListIndex)
NODEFAULT
endif
but what happens is that as soon as I click on an item, it flashes selected
then deselected.