Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
How to reference an other form than the mainform ?
I'm afraid this is a beginners question, but I'm struggling with the following problem:
Normaly I reference the form with the 'ThisForm' notation.
For example:
ThisForm.Refresh()
For the mainform use the full notation the refresh the form:
frmMainForm.Refresh()
Now, on this frmMainForm form I use a button to call a searchform frmSearchForm. But When I use frmSearchForm.Refresh() the error
'Object frmSearchForm is not found'
but ThisForm.Refresh() and frmMainForm.Refresh() works !
What's wrong ?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement