Visit our Sponsor   Visit our Sponsor
delphi3000.com - the free delphi knowledge platform
delphi3000.com - the free delphi knowledge platform
500 Users Online NOW
Have a look at your member-status

connecting people's knowledge


  - Recent ArticlesRSS feed for Recent Articles on delphi3000.com
  - List of All Articles
  - Top Viewed Articles
  - Articles (+Attachem.)
  - Articles Of Interest
  - Categories
  - Top Uploader
  - Search
  - Index

  - My Home
  - Submit an Article
  - My Articles
  - My Personal Data
  - My Bookmarks
  - Activities
  - Login/Logout

  - Sign Up
  - Why Sign Up
  - Newsletter

  - Press
  - Advertise

  - Contact
  - Feedback





Community
Borland
ClubeDelphi
Dr. Bob
UK-BUG
Delphi Meetings
Planeta Delphi



Loremo - the 1.5 liter car coming in 2009




Startblatt.de






Share this article with friendsShare this article with friends
Rate this articleRate this article - to keep the quality of delphi3000.com !
Comment this article or read through previous comments (2)


Hide application in Windows 2000Format this article printer-friendly!Bookmark function is only available for registered users!
from the taskbar and "Applications"
Product:
Delphi all versions
Category:
System
Skill Level:
Scoring:
Last Update:
05/08/2002
Search Keys:
delphi delphi3000 article borland vcl code-snippet hide W2K windows 2000 hiding Windows-2000 visible
Times Scored:
8
Visits:
4967
Uploader: Eber Irigoyen
Company: BTXSys
Reference: N/A
 
Question/Problem/Abstract:
do you need to hide your applications from Windows 2000?... I've seen many approaches here, but none of them work good for W2K
Answer:



As far as I know there's no way to completly hide an application from Windows 2000, however you can hide from the task bar, and the Applications (on the Windows Task Manager), the only part where you cannot hide your application is from the Processes (anyone?)

so... here's my approach, pretty much all the trick is done on the project source code, so open your project source code (Project | View source)
and add the following:

Program Gotcha;

Uses
  Forms,
  MainFormU in 'MainFormU.pas' {MainForm};

{$R *.RES}

Begin
  Application.Initialize;
  Application.ShowMainForm:=False; //This hides from the TaskBar
  Application.Title:=''; //This hides from the "Applications"
  Application.CreateForm(TMainForm, MainForm);
  MainForm.Visible:=False; //do this here!! not on the "OnCreate"
  Application.Run;
End.

as you can see, I just added:
Application.ShowMainForm:=False; //This hides from the TaskBar

Application.Title:=''; //This hides from the "Applications"

and:

MainForm.Visible:=False; //do this here!! not on the "OnCreate" (hides from TaskBar)

that's it... but still, the form flicks a little bit when you start the application, to fix that set the Visible property of your main form to False on the object inspector

this also works on Windows9X, but it doesn't hide it form the Ctrl-Alt-Del dialog... there's a bunch of articles for that here on Delphi3000, so you can combine the two, just by checking the version of the OS

hope this helps!

salu2

EberSys





Please rate this article!
Skill level:
BeginnerExpert

Useful:
No!Very!

Overall rating:
PoorExcellent



Comments to this article
Write a new comment
try Form1.Hide
    Pedro Moutinho (May 14 2002 10:14PM)

doesn’t work in FormCreate. You must call later.
Respond

RE: try Form1.Hide
hatem ben (May 21 2002 3:21PM)

it works okay here on windows 2000 server
Respond














 
Sign up to consume product discounts for Bronze memberships !

read more


  Visit our Sponsor

 

  Community Ad of
D. Wischnewski
 
   














 







     
  Copyright © 2000 - 2007 delphi3000.com - All rights reserved. Terms of use. || Privacy
delphi3000.com is a service by bluestep.com IT-Services GmbH (Vienna)