Could a form delete itselft

S

seymon.zhang

Hi,
I want to let a form to run some code, after that, it will delete
itself.

Did anyone know some about that?

Seymon
 
D

Douglas J. Steele

You'll have to open another form, close the first form, then have the second
form close the first form.

Note that the second form doesn't have to be opened visibly.
 
S

seymon.zhang

As you said, i use form1 to open form2, and when form2 opening, it will
close form1 and delete it.

But, it is failure, the error message told that form1 is still opening

Thx

Seymon
 
Top