Cancel button

Place another command button on the form as in Figure 21-32. Using the Properties window, set the properties shown in Table 21-11.

Table 21-11. Nondefault Properties of the Cancel Button

Property

Value

Name

cmdCancel

Accelerator

C

Caption

Cancel

Tablndex

2

Cancel

True

When the Cancel property of the cmdCancel button is set to True, the button is "clicked" when the user hits the Escape key. Thus, the Escape key will dismiss the print dialog.

0 0

Post a comment