Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
How do I give focus to my called form
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
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