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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window focus

Status
Not open for further replies.

Raynzel

Programmer
Jul 24, 2003
1
GB
I am working with Delphi 4.

My question is about keeping a window on top of others until it is closed. As it stands now, if I open a new window which displays in front (on top) of the window I just left then click on the window I just left, my new window, the one I want on top, goes behind the window I clicked on. How can I prevent this happening?

 
You could show it modal,
instead of form1.show;
use form1.showmodal;
but that way, the application will wait for that form to close(the modal one)
jb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top