Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Modal screen not modal
Hi.
I am calling a modal screen but it is not staying on the screen and goes immediately back to the calling screen .
On my calling screen, I have 3 controls , 2 Text Boxes and a Button to call the modal screen.
Calling Form
------------
Text1 On the Lost Focus, I have a Thisform.Text1.SetFocus
depending on circumstances.
Text1
cmd1 Do form ModalForm
The problem is , when I load the calling form, it lands on Text1. If I innediately click on cmd1, it loads the modal form and then immedaitely goes back to the calling form, and then I cant get out without rebooting.
If I hit return at Text1 and then select cmd1 button to load the form, there is no problem.
I am assuming that the problem is the Set focus on the Text1 control, which is setting focus back to the calling form and even though the called from is modal, the setfocus over-rides this.
Would anybody have any suggestions on a way around this ?
Regards,
Gerard
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