How to show the Message Box
To show the message box
Step a: Go to Components bar and select the standard Button icon.

Step b: Click the mouse button on the Form.

Step c: Double click on the Button to bring up Unit window.

Step d: Add programming codes for this button. This will provide an instruction for the program after the button is clicked. For example, to alert the user with a message of ‘Input the data’, type these codes in the Unit window:
begin
ShowMessage(‘Input the data’);
end;
This will show the button clicking result as below:

No comments:
Post a Comment