Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox problem on doubleclick
Message
From
25/02/2005 10:56:45
 
 
To
25/02/2005 09:11:56
Steve Jones
Business Systems Services Uk Ltd
Swansea, United Kingdom
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00990500
Message ID:
00990552
Views:
28
Quick question about this Form, Steve. What are you using it for? If it's a Dialog (and you've called it with MyForm.ShowDialog()), then you don't need to close it. You can just hide it and that would get around the problem.

~~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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform