|
-
Jan 10th, 2004, 10:51 AM
#1
Thread Starter
Hyperactive Member
Problem with Events
Hey all, i am using a small form containing a listbox.
Now what I want to do is if the user double clicks an Item in the listbox, some code will happen and then the form closes.
So I added the doubleClick Event and tried
this.close();
Calling the close method I guess call the dispose method right?
Now I always get an Exception in the dipose method saying Object listbox cannot be accessed.
So, how can close the form from this event?
Thanks Stephan
Keep Smiling - even if its hard 
Frankie Says Relax, wossname Says Yeah!
wossname:--Currently I'm wearing a gimp suit and a parachute.
C# - Base64 Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|