Hide Application btn in Taskbar

How to write Delphi code to hide application button in the taskbar?
xiejunAsked:
Who is Participating?
 
dvalineConnect With a Mentor Commented:
ShowWindow( Application.Handle, SW_HIDE );

//  this hides the taskbar icon
//  this is done in the initializaton section of the main unit

//  i also put this into the FormCreate

ShowWindowAsync( Handle, SW_HIDE );

0
 
florisbCommented:
ShowWindow(application.handle, SW_HIDE);
ShowWindow(FindWindow(nil, @Application.Title[1]), SW_HIDE);

In the form.activate event will do the trick.
0
 
nricoCommented:
It needs to go in the Form.Activate.
Putting it in Form.Create will not work.
0
 
florisbCommented:
yep, because it's not there yet.
0
All Courses

From novice to tech pro — start learning today.