I am having a problem with hidding and showing the main form.
This is want i'm trying to do:
Form2.Show; //This form displays a message saying "PLEASE WAIT LOADING"
ExecuteAndWait; //Executes and external application
Form2.close; //Close the Please wait form
Form1.Show; //Restore the main form
PROBLEM: The Main form is hiding and the Please Wait form is not coming up and also Form1 is not Showing after calling Form1.Show
Here is the execute and wait procedure just in case it helps too... (This works fine)
with SEI do begin
lpFile:=Lnk1; //const here
CloseHandle(SEI.hProcess); //Only one handle to close
//ShellExecute(Form1.Handle, nil, pchar('externalApp.exe'), nil, pchar (ExtractFilePath(Application.ExeName)), SW_SHOWNORMAL);
Hope you see what I'm trying to do here....
It's urgent so I'm giving 500 points for the solution