Delphi Programming

Hide Windows TaskBar (Code Snippet)

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

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);
  ShowWindow(FindWindow('Shell_TrayWnd', nil), SW_HIDE);

Changing SW_HIDE to SW_SHOW will invert the process:

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

See alsoEdit

External linksEdit

Code Snippets
DatabasesFiles and I/OForms/WindowsGraphicsNetworkingMath and AlgorithmsMiscellaneousMultimediaSystemVCL

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.

Also on Fandom

Random Wiki