Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

procedure WndProc

Posted on 1998-07-01
1
Medium Priority
?
266 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 140 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

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!

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

824 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