Passing Value back from FormWindow

  • Thread starter Thread starter Jeff Williams
  • Start date Start date
J

Jeff Williams

I have a form window which is a search of clients.

In this form window are fields for searching my clients and the results
are displayed in a list view.

I want to return a value from the listview either by double clicking by
pressing the Ok button.

What I dont know is how when the form window is closing do I send this
value back to the window which called it and pass the client id back.

Thanks in advance
Jeff
 
you can use form class events, eg: "FormClosed" or "FormClosing" events.

map this event in your parent class to capture the closing event.

- Jibesh
 
Jeff, the form is not destroyed after you close it. You can query it's
properties until it goes out of scope or you call Dispose(). Within your
form class make private variables to store parameters you need to query an
write public get() properties. It is no different from the language you used
before.

Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top