How do I make a program that asks for a password on entry?

I have being having problems with my program, but what I simply can't get my head around is how to make my program when it starts! Please can you answer the question as a whole form as it can get very confusing!
9HADLEYAAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RBertoraCommented:
Your question is very confusing!!!
Rob ;-)
0
kretzschmarCommented:
hi 9HADLEYA,

define a form as your passwordform like

unit ufrmLogon;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, Buttons, ExtCtrls;

type
  TfrmLogon = class(TForm)
    Panel1: TPanel;
    Bevel1: TBevel;
    Bevel2: TBevel;
    Bevel3: TBevel;
    EdDBName: TEdit;
    EdAnwender: TEdit;
    EdPassword: TEdit;
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    btOK: TBitBtn;
    btAbort: TBitBtn;
    procedure btOKClick(Sender: TObject);
    procedure btAbortClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    DoLogon : Boolean;
    { Public declarations }
  end;

var
  frmLogon: TfrmLogon;


implementation

{$R *.DFM}

procedure TfrmLogon.btOKClick(Sender: TObject);
begin
  DoLogon := True;
  close;
end;

procedure TfrmLogon.btAbortClick(Sender: TObject);
begin
  close;
end;

procedure TfrmLogon.FormCreate(Sender: TObject);
begin
  DoLogon := False;
end;

end.

now your can modify your project-source
like

program log_test;

uses
  Forms,
  log_test_u in 'log_test_u.pas' {Form1},
  ufrmLogon in '\\ARNOLD\MKretzschmar\inTime\source\ufrmLogon.pas' {frmLogon};

{$R *.RES}

begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.CreateForm(TfrmLogon, frmLogon);
  frmLogon.ShowModal;
  if frmLogon.DoLogon then
  begin
    //check name password
    //if ok
    frmLogon.Release;
    Application.Run;
  end;
end.

just a sample
other ways are also possible

meikl ;-)
0
intheCommented:
yes i am also confused by the question..
you ant to autocreate form?,start an external app when your starts?,build all?
please give more details and clearly so we understand better..
cheers Barry
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

intheCommented:
hi meikl ..was that a guess?? ;-)
0
9HADLEYAAuthor Commented:
go away you pig!

what I really meant was jus

Oh forget it
0
kretzschmarCommented:
hi rob, hi barry,
the title says all:

How do I make a program that asks for a password on entry?

but well in the new layout the whole title comes very little. and yes, the rest was guessed.

meikl ;-)
0
kretzschmarCommented:
oops,
q is deleted,
well good that
one undeleted page-instance
is in the browser cache.

9HADLEYA, why did you deleted this?

(checked as answer !!)

meikl

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.