Information générale
Titre:
Listbox problem on doubleclick
I have a form which contains a listbox. The user will select one of the items in the listbox and the form will close.
There are three ways the user can do this, by highlighting an item and clicking Select button, highlighting item and pressing enter, or double clicking the item.
Each event runs the same code.
However, when doubleclick is used and the form is to close an error message is displayed
"Cannot access a disposed object named ListBox"
Does anyone have any ideas how to get around this?
Thanks
Steve
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement