Login screen again

  • Thread starter Thread starter Markus Humm
  • Start date Start date
M

Markus Humm

Hello,

I've changed my program a bit now. The login screen gets closed properly
now I think but I've another serious issue: the main screen which should
be shown afterwards is put into the background. One has to activate it
via memory/running programs -> activate. Very annoying.

My program is like this:

In the main I do

Application.run(TLoginScreen.Create);

if loginok then Application.run(TMainScreen.Create);

and in the on click of the login screen's login button I set loginok
which is a global boolean flag.

How to bring the main form into the foreground? I think run is a
blocking call and one needs to have the main form run otherwise no
message queue for the program will exist, am I right on that?

Greetings

Markus
 
Markus said:
Hello,

I've changed my program a bit now. The login screen gets closed properly
now I think but I've another serious issue: the main screen which should
be shown afterwards is put into the background. One has to activate it

Markus,

is the MinimizeBox property of the login form set to True? Are you maybe
hiding you application?

Marcantonio
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top