General information
Category:
Forms & Form designer
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only