Kamis, 09 Desember 2010

Creating a Login application on Delphi

Delphi programming is one program that many programmers diguankan unntuk make Sebuat application programming. of course all the applications that we make will not be complete if not included log_in form which many functions and keguanaannya one of them to prevent other users to use our program, so the program / data contained therein are well preserved.
Briefly below I will try to make an appearance following application Log_in-2 short steps:
1. To create a login application in Delphi, of course, we must have a software program first.2. Make 2 form (form 1 to login and form 2 for the content of the program)3. After that we make Form1, which looks like the picture above.

    
* In the form above we use components that have been available on the program are:
    
* - Form (for the manufacture of main user application).
    
* - Label (for writing the supporting information)
    
* - Edit (to input text)
    
* - Bitbuttom (for the processing)
    
*

    
* After all components are added, click bittbottom Log_in then type the following code:
    
* Begin
      
if (edit1.text: = 'aq') or (text2.text: = '12345 ') then
      
begin
      
2.show form;
      
end else
      
MessageDlg ('Your User Id or invalid', mtwarning, [mbok], 0);
      
end;

      
bittbuttom2 keys typing the following code:

      
application.terminate;
      
end;
4. after all the code is inserted to try running the program.5. how fun right?You can add some more to mempercantiknya komponn. and it should be noted that you can add a form more suitable to the needs of its programming.
good luck ..