?
Solved

How to hide running application's window and the task bar identification

Posted on 1999-12-18
2
Medium Priority
?
178 Views
Last Modified: 2012-05-04
Hi Experts,
I'd like to hide my running application from the desktop. That means both the window and the tab in the task bar. I don't need to hide it in the Task List (Ctrl+Alt+Delete) so that's not the problem. Anyway, I know the the Systray components do the same thing but it really didn't work for me. Please, help. Thank you
0
Comment
Question by:jakubklos
2 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 1200 total points
ID: 2292405
hi,
to hide from taskbar do this on formcreate etc:

ShowWindow(Application.Handle, SW_HIDE);
SetWindowLong(Application.Handle, GWL_EXSTYLE,
  GetWindowLong(Application.Handle, GWL_EXSTYLE)
    or WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW);


to hide the main form ,inside the project file before  the line Application.Run put the line :
Application.ShowMainForm := False
this stops the main form from showing.


Regards Barry
0
 

Author Comment

by:jakubklos
ID: 2292549
Thank you Barry. Looks like it will work. Haven't tested it yet but seems reasonable. Thanks again.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.
Suggested Courses
Course of the Month7 days, 5 hours left to enroll

592 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question