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