| | |
Login screen
![]() |
•
•
Join Date: Aug 2005
Posts: 20
Reputation:
Solved Threads: 0
Hi everyone,
I'm making yet another program, and i am needing a login screen. The first form has 2 edit boxes and 2 buttons. The cancel button closes the program, the login button checks the username password if there correct or not. I have written the code for the login button but an error message keeps apearing every time I click the login button. The code that i have user is as follows:
begin
If edit1.Text='Admin' Then
Begin
Edit1.Readonly:=true;
end
else
If edit2.Text='1234' Then
Begin
form2.Visible:=True;
end
else
Begin
ShowMessage('Incorrect username and password');
end;
Could someone please help me out.
I'm making yet another program, and i am needing a login screen. The first form has 2 edit boxes and 2 buttons. The cancel button closes the program, the login button checks the username password if there correct or not. I have written the code for the login button but an error message keeps apearing every time I click the login button. The code that i have user is as follows:
begin
If edit1.Text='Admin' Then
Begin
Edit1.Readonly:=true;
end
else
If edit2.Text='1234' Then
Begin
form2.Visible:=True;
end
else
Begin
ShowMessage('Incorrect username and password');
end;
Could someone please help me out.
•
•
Join Date: Mar 2009
Posts: 3
Reputation:
Solved Threads: 0
how did you do it in your login screen?? that's also one of my problem.. I'm doing a system that has a login screen and if the privilege is student then it will open immediately the student forms which can only view the information. Thus, if the privilege is physician then it can add, edit and view the information. But, still, I don't know how to do it..
Don't worry if you have a little time to sleep. There's a lot of time when your dead!
•
•
Join Date: Mar 2009
Posts: 3
Reputation:
Solved Threads: 0
how did you do it in your login screen?? that's also one of my problem.. I'm doing a system that has a login screen and if the privilege is student then it will open immediately the student forms which can only view the information. Thus, if the privilege is physician then it can add, edit and view the information. But, still, I don't know how to do it..
Don't worry if you have a little time to sleep. There's a lot of time when your dead!
•
•
Join Date: Oct 2008
Posts: 35
Reputation:
Solved Threads: 1
I'm guessing you were getting an access violation error, which usually means you are trying to access properties of an object that has not yet been created. Has form2 been created already but has been hidden or visible:=false?
For encryptions, depends on how secure you need it to be. Some easy things you can do is:
1. Add an offset to each character, like "M" is an ASCII 77, so replace it with ASCII 127, for example. Similarly, you could do all sort of character-by-character operations, like vary the offset according to the position in the string, or make other bit-level changes.
2. Jumble the letters
3. Mix the string in with another long and randomly generated string.
4. Use a public-key type routine. The math is easy, but to be effective you have to use some big numbers.
For encryptions, depends on how secure you need it to be. Some easy things you can do is:
1. Add an offset to each character, like "M" is an ASCII 77, so replace it with ASCII 127, for example. Similarly, you could do all sort of character-by-character operations, like vary the offset according to the position in the string, or make other bit-level changes.
2. Jumble the letters
3. Mix the string in with another long and randomly generated string.
4. Use a public-key type routine. The math is easy, but to be effective you have to use some big numbers.
•
•
Join Date: Mar 2009
Posts: 3
Reputation:
Solved Threads: 0
•
•
•
•
how did you do it in your login screen?? that's also one of my problem.. I'm doing a system that has a login screen and if the privilege is student then it will open immediately the student forms which can only view the information. Thus, if the privilege is physician then it can add, edit and view the information. But, still, I don't know how to do it..
Don't worry if you have a little time to sleep. There's a lot of time when your dead!
![]() |
Similar Threads
- Login Screen with VB6 and Access (Visual Basic 4 / 5 / 6)
- Cant get to login screen (Windows NT / 2000 / XP)
- XP Login screen on Windows Server 2003 (Windows NT / 2000 / XP)
- MSN Login Screen Keeps Coming Up (Web Browsers)
- login screen config (Window and Desktop Managers)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: Direct arranging of an array
- Next Thread: Help Randomizing
| Thread Tools | Search this Thread |





