Comment savoir si une form est loader ou non ?

maximeweb59 Messages postés 1 Date d'inscription mardi 27 janvier 2004 Statut Membre Dernière intervention 9 février 2004 - 9 févr. 2004 à 09:08
Neo.balastik Messages postés 796 Date d'inscription jeudi 17 mai 2001 Statut Membre Dernière intervention 5 mai 2009 - 9 févr. 2004 à 09:26
J'ai une appli dans laquelle je souhaite exécuter du code uniquement si ma form est loader...

existe - t -il une condition du type
"if Form1 is nothing then" ???

Merci d'avance

1 réponse

Neo.balastik Messages postés 796 Date d'inscription jeudi 17 mai 2001 Statut Membre Dernière intervention 5 mai 2009 7
9 févr. 2004 à 09:26
Salut ;O)

Essaye la fonction suivante:

Private Function IsFormLoaded(ByRef oForm As Form) As Boolean

Dim frm As Form

For Each frm In Forms
If frm Is oForm Then
IsFormLoaded = True
Exit For
End If
Next

End Function

Guy
0
Rejoignez-nous