Matheus-vb6 Posted October 25, 2011 Report Share Posted October 25, 2011 (edited) Boa noiteEstou desenvolvendo um aplicativo que tem a opção "Logoff", e gostaria de saber se tem como descarregar todos formularios (unload) usando o for each...Abraços Edited October 25, 2011 by Matheus-vb6 Quote Link to comment Share on other sites More sharing options...
0 Danleonhart Posted October 25, 2011 Report Share Posted October 25, 2011 Fala Matheus !Faz assim cara:Private Sub Form_Unload(Cancel As Integer) Dim Frm As Form For Each Frm In Forms Unload Frm Next Frm End SubVALEU ! Quote Link to comment Share on other sites More sharing options...
0 Matheus-vb6 Posted October 25, 2011 Author Report Share Posted October 25, 2011 Valeu cara, funcionou direitinho, só tive q adaptar com meu código, ficou assimPrivate Sub menuLogoff_Click() lblStatus.Caption = "1" Dim frm As Form For Each frm In Forms If LCase(frm.Name) <> LCase("frmgeral") Then Unload frm Next frm frmLogin.Show Unload Me End SubAbraçao :D Quote Link to comment Share on other sites More sharing options...
Question
Matheus-vb6
Boa noite
Estou desenvolvendo um aplicativo que tem a opção "Logoff", e gostaria de saber se tem como descarregar todos formularios (unload) usando o for each...
Abraços
Edited by Matheus-vb6Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.