Link to home
Start Free TrialLog in
Avatar of drnadeem
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
Avatar of rwilson032697
rwilson032697

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rwilson032697
rwilson032697

You may also want to remove the taskbar icon for your application. You can do that like this:

ShowWindow(Application.Handle, SW_HIDE);

Cheers,

Raymond.
Avatar of drnadeem

ASKER

This doesn't work, when I put it on the form.oncreate event handler. other part is OK. Any ideas?

ShowWindow(Application.Handle, SW_HIDE);

This doesn't work, when I put it on the form.oncreate event handler. other part is OK. Any ideas?

ShowWindow(Application.Handle, SW_HIDE);

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;


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;