Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I give focus to my called form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
How do I give focus to my called form
Divers
Thread ID:
00509183
Message ID:
00509183
Vues:
51
Hi All
I know I am doing something stupid but for the life of me I can't think what!

Simple task - I have a text box class on a form - In the valid event it checks if there is more than 1 answer, if there is I want to pop up another form where the user selects which 1 they want.

The problem is the 2nd form either flashes up quickly and disappears or, as I now have it, it stays on top but the focus is on the 1st form.

Simplied version of my code is:

public x
x = createobject('test', This)
x.visible = .t.

Where test is a class based on a form, I have set it to modal and always on top
It only contains a list box, which I populate in the init event, and a command button.

Any help would be appreciated

Thanks

Derek
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform