| Example-VB | Example-VC++ |
Returns or sets whether an error will be returned when a user chooses Cancel from either the File or Print dialog boxes.
| Ö | Imaging for Windows Professional Edition V1.0, V1.1, and V2.0 |
| Ö | Imaging for Windows 95 and 98 |
| Ö | Imaging for Windows NT 4.0 |
Image Admin control
object.CancelError[= {True|False}]
Boolean
| Setting | Description |

| True (default) | Causes an error to be returned when the user chooses Cancel from either the File or Print dialog boxes |
| False | No error is returned when the user chooses Cancel |
When a user chooses Cancel from the File or Print dialog boxes, and this property is set to True, an error is returned by the ShowFileDialog or ShowPrintDialog methods, respectively.