Put the value in a property on the form. In the interactivechange event of the listbox, populate this value. In the unload event of the form, return the property value. I think this is what you want - you want to pass back the value even when they press the 'X', right?
>I have a form with a List box in it, when the listbox is double-clicked, it releases the form passing back a value.
>
>Is there a way of telling when the user has clicked the X in the corner of the form to close it, when it is clicked it still passess back the value?
>
>Thanks
>Kev