Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set the focus from one form to another
Message
From
16/11/1998 09:18:17
Brad Stickley
Parker Pneumatic Div. North America
Wake Forest, North Carolina, United States
 
 
To
16/11/1998 08:28:39
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00157792
Message ID:
00157807
Views:
20
>Hello,
>
>I am using Visual FoxPro 6.0. I have two forms opened at the same time on the screen. They are not set in a Formset. Now I want the following: When I press a button on the first form, I want to set the Focus to the other one. How can I do that?
>
>Thank you in advance.

Afeir

You can also create a form set and switch between the forms with a command button.

On a command button on form one of the set you can have a button with a click event that has,

thisform.visible = .t.
thisformset.form1.visible = .t.
thisformset.form2.visible = .f.

and on the second form you can have the command button click event to have this,

thisform.visible = .t.
thisformset.form1.visible = .f.
thisformset.form2.visible = .t.

Brad.
He is there and He is not Silent.
Previous
Reply
Map
View

Click here to load this message in the networking platform