Friday, October 5, 2007

How to show the Message box

How to show the Message box

To show the Message box

Step 1

To show the message box, the first thing you must do is to add the Button object in the form.

Step 2

Then, double click the Button and it will display a Code Explore window later, you need to enter the programming inside it.

Step 3

Program:

procedure TForm1.Button1Click(Sender: TObject);

begin

ShowMessage('Hello Everybody');

end;

end.

You can try to press the F9 to run the program to see the result.

No comments: