The CanCancel property determines whether the user can cancel the progress dialog.
ProgressDialog Object