Solved

Running a program without showing it

Posted on 2002-07-04
6
125 Views
Last Modified: 2010-04-04
How do i make a program run and close without showing the form?
I want to send the program parameters
send an e-mail and close without show a form

The part of get the parameters and sending an e-mail and close is done but i still see a form.
0
Comment
Question by:delpro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 3

Expert Comment

by:raidos
ID: 7131203
in project source add before Application.Run;
Application.ShowMainform := FALSE;

Regards
//raidos
0
 
LVL 1

Expert Comment

by:herr_apfelschnitt
ID: 7131408
You could (if using non-visual e-mail component that doesn't need Forms-unit, or no e-mail component at all) create your application without any forms, and just do all the coding between the "begin" and "end." of your Project Source. Then you won't need the Forms unit at all, which will make your executable much smaller, and save some memory/time while running. Of course, if you're using visual e-mail component this won't help much.

herr_apfelschnitt
0
 
LVL 2

Accepted Solution

by:
Griffon earned 200 total points
ID: 7131433
I believe this article covers all that you are looking for with the coding included.

http://delphi.about.com/library/weekly/aa121801a.htm

it shows you how to hide the form along with the Icon in the system tray and even from the task manager :) Hope this is just what you are looking for.

Please note that this is the quick way of sorting it out but if it is quality and efficiency that you are looking for then removing the forms altogether and using a CLI (command line interface) is the best way forward. After all if you are hiding the form then why have it? unless of course u want splash screens to appear in certain circumstances.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 34

Expert Comment

by:Slick812
ID: 7132194
if you want to try an app without the Forms unit this site might help

http://www.angelfire.com/hi5/delphizeus/dpr1.html
0
 
LVL 3

Expert Comment

by:lopem
ID: 7132320
listening
0
 

Author Comment

by:delpro
ID: 7135614
The Application.ShowMainform := FALSE; don't work

It don't send out the e-mails

Where do I put the code to send the e-mail?
I also sometime send a form if I send param "/Setup"
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month8 days, 23 hours left to enroll

615 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