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.
 
Back
Top