Howdy, Stranger!

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

Categories

taskbar

adibicheaadibichea Member Posts: 46
i need to hide my application from the taskbar eventually move it to tray!or hide from both taskbar and tray!

Comments

  • bogdanul2003bogdanul2003 Member Posts: 153
    : 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;

  • mohfamohfa Member Posts: 13
    : : 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.