Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make a window appear on top.
Message
From
24/09/1997 12:08:35
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00051433
Message ID:
00051436
Views:
28
>My application has two dataentry forms. The second form is a multi tabbed pageform. Both have a command button 'find' which brings up a seperate form where the user enters a number, presses ok and then is returned to the original form, which displays record selected by the find function.
>
>This works fine in the first, simple case. You press 'find' the find form appears, you enter the number and then press ok which release the form, and the original form appears refreshed with the selected record.
>
>The problem is with the second form, which has a identical command button 'find' and is intended to operate the same manner. The difficulty is that the find form appears behind the form, thus halting the entire operation and untile you clear the form with the pageframe, you cannot see the find form. The only way I have been able to show the find form is to hide the pageframe form. This of course is not acceptable.
>
>I want the find form to appear ontop of the form with the pageframe. I looked at wontop() but see it as only returning a forms position, not able to force a form to be on top.
>
>My question is how to make the find form appear on top in the second case, and what factor would make it appear in back.
>
>Thanks-

There are several ways. The basic one is to use Form.ZOrder method. Also, if you are concerned to bring form on top then Form.Show should work Ok (if you don't have another form with AlwaysOnTop=.T.).
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform