Via Cà Matta 2 - Peschiera Borromeo (MI)
+39 02 00704272
info@synaptica.info

Create an invisible application with Delphi

Create an invisible application with Delphi

[lang_it]

produrre un applicazione non visibile con Delphi è un gioco da ragazzi.

per nascondere il form principale dell’applicazione dovete semplicemente aggiungere la seguente riga al codice del vs. progetto :
Application.ShowMainForm:=False;

esempio concreto, modifico il “dpr” della mia applicazione:

non finisce qui, voglio anche esser sicuro che non si veda sulla taskbar il bottone associato all’applicazione, per far ciò nell’evento onCreate del form principale aggiungo quanto segue, se sto usando Delphi 7.0 o versioni precedenti :

(with Delphi 7.0)

Con Delphi 2007 o maggiore, per nascondere il bottone sulla taskbar è necessario semplicemente settare la proprietà  dell’oggetto form “MainFormOnTaskbar” a false.

e questo è tutto, ora l’applicazione gira, pre chiuderla ovviamente non vi resta che il taskmanager.

[/lang_it]
[lang_en]
to produce an invisible application with Delphi is soo simple….

to hide the main form at application start you need to add in your project source a this code :

Application.ShowMainForm:=False;

full piece of code:

for hiding the taskbar button you need to add following code on the create event handler of you main form like :

(with Delphi 7.0)

with Delphi 2007 or greater, to hide task bar button you need to set the property “MainFormOnTaskbar” to false of your main form.

thats all, now you can’t see the application on your DeskTop.

[/lang_en]

Tags: , , , , ,

Lascia un commento