Jump to content

which form loads first, and why?


gordon
 Share

Recommended Posts

ive got an app running fine.. no trouble.. but Im a little confused about something.

 

I took my mainform, and renamed it to loginform.. Loginform is the first form that loads.. my question is, why is that? where is the code that tells that form to load first?

 

I changed the creation order in the project, that didnt affect anything.. All unigui forms seem to have been derived from the same class etc. so what makes that first form different, and where in code does it tell it to load that one first at startup?

 

Gordon

Link to comment
Share on other sites

ive got an app running fine.. no trouble.. but Im a little confused about something.

 

I took my mainform, and renamed it to loginform.. Loginform is the first form that loads.. my question is, why is that? where is the code that tells that form to load first?

 

I changed the creation order in the project, that didnt affect anything.. All unigui forms seem to have been derived from the same class etc. so what makes that first form different, and where in code does it tell it to load that one first at startup?

 

Gordon

 

You have to add this line in the form you want to be the main form and remove it form tha actual mainform:

 

initialization

RegisterMainFormClass(TfrmMY_MAIN_FORM);

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...