gordon Posted August 3, 2012 Posted August 3, 2012 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 Quote
AlbertoVesx Posted August 3, 2012 Posted August 3, 2012 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); Quote
gordon Posted August 3, 2012 Author Posted August 3, 2012 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); ahh, I see it now.. makes sense now.. thank you.. Gordon Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.