Hi,
I have a problem about shown event. I have a login form and a main form. I start the program with main form. then I used frmMain.Shown() to control the login form. When main form is shown, it checks Win. Registry if username and password is stored there. İf yes, login form comes and wants me to sign in and if not, it calls first login form to create a record in Registry.
The problem is that;
When I click on X (close) button, it closes the login form, but Main form is still running and I can use it without sign in.
How do I solve this problem? Or is there any other way to controls if Registry has the record or not?
Thanks&Regards. ..
I have a problem about shown event. I have a login form and a main form. I start the program with main form. then I used frmMain.Shown() to control the login form. When main form is shown, it checks Win. Registry if username and password is stored there. İf yes, login form comes and wants me to sign in and if not, it calls first login form to create a record in Registry.
The problem is that;
When I click on X (close) button, it closes the login form, but Main form is still running and I can use it without sign in.
How do I solve this problem? Or is there any other way to controls if Registry has the record or not?
Thanks&Regards. ..
Comment