Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I give focus to my called form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00509183
Message ID:
00509187
Views:
18
>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
>

Derek
In your example, did you try , instead of x.visible= .t., x.show() ?

HTH
Jaime
Why do programs stop working correctly as soon as you leave the Fox?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform