I'd say it looks like you want a Service (NT/2k/XP) and not a regular application..
If that's the case, and it doesn't need to run on 9x, In Delphi 6 go: File -> New -> Other, and pick "service" from the available templates. Of course, read the help so you understand how services work, and what they can/cannot do.
Main Topics
Browse All Topics





by: HillGrooverPosted on 2003-05-23 at 15:14:20ID: 8575155
Hi mythos128,
rm1, Form1); dle, SW_HIDE); Handle, GWL_EXSTYLE, Handle, GWL_EXSTYLE) or WS_EX_TOOLWINDOW);
dle, SW_HIDE);
use this code in your projects source (*.dpr) file,
program Project1;
uses
Windows, // this needs to be added to hide the window and the taskbar button
Forms,
Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
begin
Application.Initialize;
Application.ShowMainForm := False; // stops the application showing the main window (ie Form1)
Application.CreateForm(TFo
{The Next 3 Lines hides the taskbar button}
ShowWindow(Application.Han
SetWindowLong(Application.
GetWindowLong(Application.
Application.Run;
end.
assuming that you have controls on a form(s) that you want to use. then add this at the very end of any unit (just before the last "end.") you have in your project that uses a form,
begin
ShowWindow(Application.Han
end.
this will stop the program displaying any windows or taskbar buttons and should be sufficient for what you've described.
:o)