Thank you
Paul
Is the popup form shown modally (showdialog) or modeless (show)? I guess
it's the former. After ShowDialog returns, you can access the controls
and get the selection from the listview.
'pseudo-like code
using f=new popupform
if f.showdialog = ok
dest = f.listview.selecteditem
end if
end using
Make the popup form return ok by setting it's dialogresult property
in the listview's double click event. This also closes the Form;
no need to call Close explicitly.
--
Armin
"Armin Zingler" <az.n...@freenet.de> wrote in message
news:eDpTKDni...@TK2MSFTNGP04.phx.gbl...
With a modal Form, you can reuse the instance after closing it. You just have to
- declare the variable at a place that doesn't run out of scope between
the two calls to ShowDialog, usually as a field of the calling class.
- not dispose the Form after Showdialog returns. That means, you must not use
the "Using" statment. (you're using VB?) In opposite to modeless Forms,
a modal Form is not automatically disposed whenever it's being closed.
--
Armin
"Armin Zingler" <az.n...@freenet.de> wrote in message
news:ubKPVJsi...@TK2MSFTNGP04.phx.gbl...