unit Unit1;
interface
uses StdCtrls, Classes, Controls, Forms;
type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
Edit1: TEdit;
procedure Edit1KeyPress(Sender: TObject
var Key: Char);
private
FPassword: String;
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Edit1KeyPress(Sender: TObject
var Key: Char);
begin
FPassword := FPassword + Key;
Key := #0;
end;
end.