Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to keep bottom form on bottom when I returning from a third form?

Status
Not open for further replies.

elevator

Programmer
Apr 23, 2002
19
US
I have two forms on the screen.

I click on a button on the bottom screen (which is overlapping on the side), it opens up a third form.

I am now on a third form.

When I exit the third form, the original bottom form pops up on the top.

How do I keep the origianl bottom form on the bottom.
 
Looks like you want to modify the default behavior which comes from Windows. Two ways of achieving what you want pop to mind:

1) On the close method of the third form, attach a form variable(frm) to the title of the form you want to focus and use frm.bringToTop(). You may have to use a doDefault first.
2) On the button in the bottom form, use a frm.wait() and then attach to the form you want to focus and use the bringToTop()
See the help for these methods.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top