Okay so I am working on small program, and halfway through I decided to make a login screen at the start. How do I make it that the login screen shows up before the main form?
Fireprufe15
0
Light Poster
Recommended Answers
Jump to PostGo to your dpr file and change the line
Application.CreateForm(TMainForm, MainForm);
with what you need
Application.CreateForm(TYourLoginForm, YourLoginForm);
Jump to PostThat's because the answer given you is not correct -- the very first form auto-created in your DPR is the application's main form -- which is not what you want.
You still need to edit the DPR, but in a different way. If you google around "delphi spash screen" …
All 5 Replies
Ionelul
7
Junior Poster in Training
Fireprufe15
0
Light Poster
Fireprufe15
0
Light Poster
Duoas
1,025
Postaholic
Featured Poster
anijacity
1
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.