Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/08/2008, 12:48
Avatar de Kakashi-kun
Kakashi-kun
 
Fecha de Ingreso: agosto-2008
Mensajes: 13
Antigüedad: 15 años, 9 meses
Puntos: 1
Respuesta: Cerrar todos los form de una vez

Pues yo te aconsejo que al cargar la form2 cierres la form1:

Código PHP:
Private Sub Command1_Click()
     
Unload Me
     Load form2
     form2
.Visible True
End Sub 

Y despues cuando cierres la otra pongas:

Código PHP:
Private Sub Command1_Click()
     
Unload Me
     Load form1
     form1
.Visible True
End Sub 

O si quieres que al cerrar la form2 se cierre todo:

Código PHP:
Private Sub Form_Unload(Cancel As Integer)
    
Unload form2
End Sub 


Espero que te sirva