Handles????

  • Thread starter Thread starter Richard Grene
  • Start date Start date
R

Richard Grene

I have a form that loads another form as shown below:

Dim formEmail As New fEmailSetup()
formEmail.Show()

How can I tell when the loaded form (formEmail) is closed?

Thanks,
Richard
 
Richard Grene said:
I have a form that loads another form as shown below:

Dim formEmail As New fEmailSetup()
formEmail.Show()

How can I tell when the loaded form (formEmail) is closed?

Handle the Form's Closed event. In order to do this, have a look at the
Addhandler statement.
 
two methods come to mind:
1) display the form modally then control returns to the next line after the
show.

2) add an event to the formEmail and raise it when it closes. Handle it in
the main form.
 

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