Sleach
Try making the form borderless and setting the height to 0 in the application source.
By the way, do you put the showwindow between the initialize and the createform?
Cheers
Richard
Main Topics
Browse All TopicsI need my application to be invisible.
I can make my app invisible to the taskbar by placing the line of code below in the Project Source.
ShowWindow(application.han
However, setting the main forms Visible property to false has no effect.
I can set if to false after the form has been initially shown, but the form is "Flashed" on screen. This is not acceptable for my needs.
How can I make my application invisible on startup, without any flashing on screen?
I am using Delphi 2.0
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Real good idea, but it isn't consistant.
Your method works perfectly in a small test application. However when I implement it in my larger app with many forms, It works most of the time, but ocassionally the main form will stay on screen for about a second or so before it dissapears.
I cannot explain this behavior, or trace it in the debugger.
Any other ideas?
I was setting the form height to 0 in the OnCreate event. Then a short time after the program had started, I was setting the visible property to false, and resetting the height back to normal. The problem was that the form would occasionally show anyway.
The workaround was to wait until I acutally needed to make the form visible again, and then reset the height, and border style.
Thanks :)
Sleach,
give this a shot:
In your main form, set it's WindowsState property to wsMinimized and add the following to the [Private Declarations} of the main form:
PROCEDURE WMQUERYOPEN(VAR Msg: TWMQueryOpen);
message WM_QUERYOPEN;
in the {implementation} section of the unit, add this:
Procedure TForm1.WMQUERYOPEN(VAR Msg: TWMQueryOpen);
Begin
Msg.Result := 0;
END;
Hope this helps!
Pegasus
Business Accounts
Answer for Membership
by: sleachPosted on 1997-05-31 at 18:57:40ID: 1336702
Edited text of question