drnadeem
asked on
hide program from ctrl+alt+del window
How do I hide my program from the close program dialog that pops when I press CTRL+ALT+DEL ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This doesn't work, when I put it on the form.oncreate event handler. other part is OK. Any ideas?
ShowWindow(Application.Han dle, SW_HIDE);
ShowWindow(Application.Han
ASKER
This doesn't work, when I put it on the form.oncreate event handler. other part is OK. Any ideas?
ShowWindow(Application.Han dle, SW_HIDE);
ShowWindow(Application.Han
Here is another approach from my PAQs...
First create a unit ex. called RunFirst.pas, where the only conents is that the gobal variabel IsLibrary is set to true... hereby the Application thinks that it exists inside a DLL file, and will not create the icon. After this the IsLibrary variabel should be set to false in your project file (DPR).
Exampel:
unit RunFirst;
interface
implementation
initialization
IsLibrary := True;
end.
I reset the IsLibrary just after telling the Application that it should not show my main form, like this :
begin
Application.Initialize;
Application.ShowMainForm := False; // You may not need this...
IsLibrary := False;
...
end;
First create a unit ex. called RunFirst.pas, where the only conents is that the gobal variabel IsLibrary is set to true... hereby the Application thinks that it exists inside a DLL file, and will not create the icon. After this the IsLibrary variabel should be set to false in your project file (DPR).
Exampel:
unit RunFirst;
interface
implementation
initialization
IsLibrary := True;
end.
I reset the IsLibrary just after telling the Application that it should not show my main form, like this :
begin
Application.Initialize;
Application.ShowMainForm := False; // You may not need this...
IsLibrary := False;
...
end;
Here is another approach from my PAQs...
First create a unit ex. called RunFirst.pas, where the only conents is that the gobal variabel IsLibrary is set to true... hereby the Application thinks that it exists inside a DLL file, and will not create the icon. After this the IsLibrary variabel should be set to false in your project file (DPR).
Exampel:
unit RunFirst;
interface
implementation
initialization
IsLibrary := True;
end.
I reset the IsLibrary just after telling the Application that it should not show my main form, like this :
begin
Application.Initialize;
Application.ShowMainForm := False; // You may not need this...
IsLibrary := False;
...
end;
First create a unit ex. called RunFirst.pas, where the only conents is that the gobal variabel IsLibrary is set to true... hereby the Application thinks that it exists inside a DLL file, and will not create the icon. After this the IsLibrary variabel should be set to false in your project file (DPR).
Exampel:
unit RunFirst;
interface
implementation
initialization
IsLibrary := True;
end.
I reset the IsLibrary just after telling the Application that it should not show my main form, like this :
begin
Application.Initialize;
Application.ShowMainForm := False; // You may not need this...
IsLibrary := False;
...
end;
ShowWindow(Application.Han
Cheers,
Raymond.