For Programmers: Free Programming Magazines  


Home > Archive > Delphi > July 2004 > how to write app with not taskbar or form









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how to write app with not taskbar or form
Ken Fletcher

2004-06-25, 7:47 pm

I need to write an app that runs continually in the background and gathers
network data. It will run all the time the user is logged in and then
terminate when the user logs out.

Current Code runs but leaves an entry on the taskbar that could be closed
but the user. Any Help Here would be appreciated.

Ken


Jamie

2004-06-25, 7:47 pm

make it a service instead.


Ken Fletcher wrote:
> I need to write an app that runs continually in the background and gathers
> network data. It will run all the time the user is logged in and then
> terminate when the user logs out.
>
> Current Code runs but leaves an entry on the taskbar that could be closed
> but the user. Any Help Here would be appreciated.
>
> Ken
>
>


Ken Fletcher

2004-06-25, 7:47 pm

Thanks Jamie!

"Jamie" < jamie_5_not_valid_after_5_Please@charter
.net> wrote in message
news:10d69kqjs6cgda0@corp.supernews.com...
> make it a service instead.
>
>
> Ken Fletcher wrote:
gathers[color=darkred]
closed[color=darkred]
>



Krzysztof Olczyk

2004-07-05, 3:58 pm

"Ken Fletcher" <fletchek@nwlink.com> wrote in message
news:10d14da73v6m060@corp.supernews.com...
> I need to write an app that runs continually in the background and gathers
> network data. It will run all the time the user is logged in and then
> terminate when the user logs out.
>
> Current Code runs but leaves an entry on the taskbar that could be closed
> but the user. Any Help Here would be appreciated.


In the project source code before creation of any form set the property
ShowMainForm of Application object to false.
Let the following code serve as an example:

program whatever;

uses
Forms,
main in 'main.pas' {MainWnd};

{$R *.res}

begin
Application.Initialize;
Application.ShowMainForm := false;
Application.CreateForm(TMainWnd, MainWnd);
Application.Run;
end.


However, the form, actually, will still exist, it won't be visible.
Nor be the button on the taskbar.
You may wish, additionally, to use google to find the component that will
put
the icon in the taskbar or write it by yourself since it's not a hard task.

--
Regards,
Krzysiek


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com