How to have one form popup another and stay on top
Posted on 2003-03-05
I'm using Delphi 6 and I want to force my about box to come up like a splash screen. However, if I try to load it in the main code instead of form1's code or the about box code, it loads, but apparently before the form1 (ahead of the Application.Run line) , so it goes behind form1. If I try to do a .show anywhere in the events for form1 such as form.create, I get an exception error. Apparently this creates a loop somehow, but I don't understand it. I can force the about box to be on top by setting the property "ontop", which works, but I don't want that because then you can't click on the main form beneath and get it back on top without closing the about box.
Here is the code from the main section untouched: