Hello Bunyamin, >>Is you app the only application that is going to be run? > yes, > and the subjective is to avoid operator running/stopping other program.
Another approach can be to Post a message WM_QUIT or WM_CLOSE to HWND_BROADCAST. This will close all windows on desktop, taskbar, icons, everything. You have to do that before your first form is created because otherwise it will close also. I think it has to be the WM_CLOSE. I did it once by accident, so I did not try to popup a form after it, but you have a nice empty desktop :) so like this (in DPR unit) (not tested): Application.Initialize; PostMessage(HWND_BROADCAST, WM_CLOSE, 0, 0); Sleep(1000); Application.CreateForm(TMain, Main); Application.Run; --- Rgds, Wilfried http://www.mestdagh.biz __________________________________________________ Delphi-Talk mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi-talk
