Okay so I have a program, but when it launches the user has to enter a username and password. This login system is on a different form from the rest of the program. There are two things I would like to implement, but I need some help. This is for a gr. 10 IT task.
1. At the moment the password and username is a constant declared in the program and thus is not changeable to the user's preference. I would like to make it changeable, but then I can't use constants I believe. I tried using a text file to store the passcode in, but ultimately that isn't very secure, because the text file could just be deleted, edited or read to gain access to the application. Is there a way that I can permanently change the program's constants, like the program changing it's own source or something like that(I really doubt that this is possible). How can I implement a real secure way of making a changeable password. (Keep in mind I am only grade ten and if it's too complicated my teacher will know it's not my own work).
2. When the password has been entered the login form hides itself and the actual program's form shows up. Now when I hit the close button on this form, it closes, but in the debugger it shows it's still running, although there is no sign of the program running in windows. Why is this?
Any answers to the above questions are welcomed and would be deeply appreciated. Please make the solutions as simple as possible, so my teacher won't realize it's not my work. Thank you DaniWebbers.