Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Activating a form from a grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01195509
Message ID:
01195525
Vues:
19
>>>I want to activate a form from the text2.click event of a grid without releasing the current form - the new form loads but behind the current form - both forms are modal - I have tried all the settings for the new form ie on top etc but it makes no difference
>>>
>>>If I put the code in the click event of a button it works fine
>>>
>>>What am I doing wrong?
>>>
>>>Colin
>>
>>Something is wrong here. Could you show how you call the new form? Is it plain DO FORM command?
>>Anyway, it's a good practice: every time before you call something from grid you may move focus out of the grid by using AnotherObject.Setfocus
>
>Edward
>
>I have set focus to a command button and put the do form in the get focus event of the button - it works
>
>Thanks a lot
>
>Colin

Glad, it works. I suspect you have something in Grid.Textbox.Lostfocus event or Grid.BeforeRowColChange event to mess with form opening.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform