Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a Non Modal Form from another form
Message
 
À
04/05/2006 09:19:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01117835
Message ID:
01119336
Vues:
15
Hi Frank.
The idea of instatntiating both should work... thanks for the tip.
Regards,
Gerard


>Hi Gerard,
>
>if the second form is modeless, then there is no wait state when you call it from the first one, so the code in the first form will continue to run until the read events. Can you make the second one modal? Otherwise, what I would do is instantiate both forms but keep the second one hidden until you need it, then show it.
>
>
>>Both Forms are modeless
>>What seems to be happening is that control is passed back to the calling form, as there would be some code after the command that does the calling
>>but I want to set focus to the called form
>>
>>
>>Regards,
>>
>>Gerard
>>
>>
>>
>>
>>>Or may be the desktop property is set to .T.?
>>>
>>>
>>>
>>>Gerard
>>>when you call
>>>
>>>DO FORM MyForm2
>>>
>>>the focus ougth to be on form2. If it doesn't something else is happening. Just a guess, is form1 modal?
>>>Hernan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform