Fandom

Delphi Programming

Hide Windows TaskBar (Code Snippet)

2,918pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

The Windows Taskbar behaves like a normal window, so you can use the SW_ parameters on the ShowWindow function. You only need the Taskbar handle and you find it with FindWindow function

procedure TForm1.Button1Click((Sender: TObject);
begin
  ShowWindow(FindWindow('Shell_TrayWnd', nil), SW_HIDE);
end;  

Changing SW_HIDE to SW_SHOW will invert the process:

procedure TForm1.SetEditsColor(NewColor: TColor);
begin
  ShowWindow(FindWindow('Shell_TrayWnd', nil), SW_SHOW);
end;

See alsoEdit

External linksEdit


Code Snippets
DatabasesFiles and I/OForms/WindowsGraphicsNetworkingMath and AlgorithmsMiscellaneousMultimediaSystemVCL

Also on Fandom

Random Wiki