taskbar

i need to hide my application from the taskbar eventually move it to tray!or hide from both taskbar and tray!

Comments

  • : 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;

  • : : 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;

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories