1.

Solve : C++ Builder 6 - Controlling the main form?

Answer»

Hi,

Can anybody tell me how to control the main form. I want to make the main form appear depending on a check that i am GOING to make. For example when running the exe, i need to check first if the username and password is already present in the Registry. If it is present then i wont show the LOGIN. If the login is not correct, i shouldn't get the main form but the login again.In which event of the main form should i do this check so as to make the main form appear depending on the result of this check?
Not up on C++, but most object languages use the show method to produce a form.

Have you program start with the login form, do your check and then DECIDE WHETHER to show the login form again or the mainform.

You could try something like formname.show

Good luck.  8-)I can't start with the login prompt since if the username and password exists in the registry, the login prompt should not appear at all!!

RowinWhen you do the MODULE build (make) you should have options as to which component get control during the module load.  Point the start point to a module that does the check and show whichever form is appropriate.

Good luck.  8-)Ok thanks for the help



Discussion

No Comment Found