Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Running a program without showing it

Posted on 2002-07-04
6
Medium Priority
?
126 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 800 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
Industry Leaders: 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

721 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