Removal of Task Bar

Hi,

Does anyone know how to remove the task bar when running an application.

Regards

Chris
ChrisBerryAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ronit051397Connect With a Mentor Commented:
From the The Delphi ZDTips Collection:

procedure TForm1.HideTaskClick(Sender: TObject);
var wndHandle : THandle;
     wndClass : array[0..50] of Char;
begin
     StrPCopy(@wndClass[0], 'Shell_TrayWnd');
     wndHandle := FindWindow(@wndClass[0], nil);
     ShowWindow(wndHandle, SW_HIDE); // This hides the taskbar
end;

procedure TForm1.ShowTaskClick(Sender: TObject);
var wndHandle : THandle;
     wndClass : array[0..50] of Char;
begin
     StrPCopy(@wndClass[0], 'Shell_TrayWnd');
     wndHandle := FindWindow(@wndClass[0], nil);
     ShowWindow(wndHandle, SW_RESTORE); // This restores the taskbar
end;

0
 
ChrisBerryAuthor Commented:
Thanks
0
All Courses

From novice to tech pro — start learning today.