Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox problem on doubleclick
Message
De
25/02/2005 10:08:41
 
 
À
25/02/2005 09:11:56
Steve Jones
Business Systems Services Uk Ltd
Swansea, Royaume Uni
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00990500
Message ID:
00990530
Vues:
13
Wow, Steve ... that is a weird one! It doesn't seem to happen on other controls (I tried it with a ListView and a Grid), so it's definitely a bug! I tried several different things to try and get around it and just couldn't find a way to do it. I'm going to try and post it on another forum I participate in (GotDotNet) and see if anyone has any suggestions.

~~Bonnie




>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
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform