| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
How to Make password
Hello, This is my first Delphi 7e tutorial so please don't comment saying it's bad.
Ok, first off we need to start a new project so open up delphi and you'll see an empty form. Cutomize the size and everything. Small is more perferred in this. Now in Delphi you'll see a selection of tool categories. Select "Standard". When you've selected find the button the says Edit. When found click it then click your form. You'll see now a box where you can edit it. Time to set the box up. At the side of delphi you'll see "Object Inspector" if not open it so that you can edit. click Edit1 or whatever the Edit tool is called. Go to Object Inspector. Scroll down list till you see "Text". In the box beside it erase it so that the Edit box will have nothing in it. The Edit box is done now. Time to work on how to get it working. Make a button(For now it's going to be called button). Put the button anywhere on the form. Now go to object inspector. When in object inspector find Caption and name it. The button will allow you to use the password. Now dubble click button and a window will pop up this is where you edit it. Paste this in but make sure it looks like this below and this only. You can change and I'll show you how. Quote:
This code below is how it detects if password is right. (edit1.text[1]='2') Edit1 is the edit box that you made. If your Edit box is not named Edit1 then make sure that you change the edit1 to whatever you named your edit box. (edit1.text[1]='2') The 1 in this tells what position the password is at for example. The 2 is first so we will put [1]. The 4 is second so we will put [2]. (edit1.text[1]='2') Now for the 2 this will be the number you want for the password. As you can see 2 is first you can change to anything you want but make sure it's a single letter or digit. Now that you under stand how it works take this and secure your new file. Also one more thing if your going to use the script then the password in it is 294263 Thank you for your support. |
![]() |
| Viewing: Tutorialized Forums > Desktop Programming > Delphi > How to Make password |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|