Add this to the listbox double click event
Me.DialogResult = DialogResult.OK
Me.Close()
Ken
--------------------------------------------------------------------
Quote:
> Hi all.
> A question: I have a modal form with a listbox and the standard OK/Cancel
> buttons. I don't currently have any events declared, I let the modal form
> mechanism handle my buttons. What must I put in listbox.DoubleClick
handler
> to make the form submit itself as if I clicked OK subsequently?
> Thanks,
> Goran