: : i need to hide my application from the taskbar eventually move it to tray!or hide from both taskbar and tray! : : : try : Application.ShowMainForm:=False; : : *** try this friend *** { This example runs only under Windows 95/98 }
implementation
function RegisterServiceProcess(dwProcessID, dwType: DWORD): DWORD; stdcall; external 'KERNEL32.DLL';
// hide procedure TForm1.Button1Click(Sender: TObject); begin RegisterServiceProcess(GetCurrentProcessID, 1); end;
// show again procedure TForm1.Button2Click(Sender: TObject); begin RegisterServiceProcess(GetCurrentProcessID, 0); end;
Comments
:
try
Application.ShowMainForm:=False;
: :
: try
: Application.ShowMainForm:=False;
:
:
*** try this friend ***
{ This example runs only under Windows 95/98 }
implementation
function RegisterServiceProcess(dwProcessID, dwType: DWORD): DWORD;
stdcall; external 'KERNEL32.DLL';
// hide
procedure TForm1.Button1Click(Sender: TObject);
begin
RegisterServiceProcess(GetCurrentProcessID, 1);
end;
// show again
procedure TForm1.Button2Click(Sender: TObject);
begin
RegisterServiceProcess(GetCurrentProcessID, 0);
end;