Solved

procedure WndProc

Posted on 1998-07-01
1
259 Views
Last Modified: 2010-04-03
Im making an application that, initialy, it runs invisible. So, the property Form1.Visible is initialy False. But, when it starts, the application reads the procedure WndProc, and it turns that property to True. I tried to put an If structure at WndProc, like:
if a=0 then
  Form1.Visible := False
else
  Form1.Visible := True; ,
but, when i do that, the application doesn't appears anymore. What can i do and why the procedure WndProc is so unstable (it's readen more than 1000000 times at the start up).
0
Comment
Question by:lifeson
1 Comment
 
LVL 4

Accepted Solution

by:
d003303 earned 70 total points
ID: 1356785
Yo,
modify your project's source code like this:

begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Form1.Visible := false; // if not already set in object inspector
  Application.ShowMainForm := false;
  Application.Run;
end.

Slash/d003303
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how do i remove white background in node inside virtual TVirtualStringTree? 12 92
how do i create updater to My Activex application? 3 79
Delphi cmd execution 6 55
Delphi 2 48
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now