
396 SOF T WARE ENGINEERING AND TESTING
Now draw the control in the form.
Add five command buttons in the form. Change the Caption and Name
property of these command buttons as follows:
Command Button Name Caption
Command 1 CmdNew New
Command 2 CmdSave Save [Change the Default property to True]
Command 3 CmdEdit Edit
Command 4 CmdDelete Delete
Command 5 CmdCancel Cancel [Change the Cancel property to True]
If you set the Default property of a Command button to True, you can execute
this Command button either with the mouse or by pressing the Enter Key, whereas
if you set the Cancel property of a Command button to True, it can be executed ...