General information
Category:
Forms & Form designer
Title:
Can I detect the user has selected in a multiselect List?
Hi, all!
Here is my problem:
I have a multiselect listbox on a form. There is also a command button on the form. The command button should only be enabled if two or more list items are selected.
Is there any event which fires as list items are selected/unselected?
I tried putting some code in the mousedown/mouseup events. This works unless the user uses the keyboard to select items.
I also tried creating a custom listbox class, with a selected_assign() method. This method doesn't seem to ever fire. I was hoping that as the selected() property of the listbox changed, the assign method would fire. But it doesn't.
Any ideas?
- George
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only