Board index » delphi » Terminating an Application prior to creating a Main Form
jimar jaafar
![]() Delphi Developer |
Mon, 28 Jun 2004 17:51:53 GMT
Terminating an Application prior to creating a Main FormHi, I have a Login Form which I want to open to allow me to verify if the user is valid. I want to open it before the MAIN FORM (MDI Form) is open. This Login form can either accept or not to accept the user depending if his/her login is valid (e.g. Cancel Log is selected or thrice entered a wrong password/user id). Below are the sample codes: begin with TfrmAppUser.Create(nil) do //Login Form that ask for User ID and Password of the user ... Application.Run; end. Based on the codes, once the Login returns 1 (indicating a cancel in login), I'm encountering an access violation in User32DLL. What seems to be the problem? Is there other way of effecting this kind of feature? Alll the best. Jimar |