gali040898
asked on
User Click Cancel/save In CommonDialog control
how a program in vb5 knows if the user choose cancel or save in commondialog control which Displays the Save As dialog box.
The program is using the Comdlg32.ocx
The program is using the Comdlg32.ocx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I want to delete the Question . I found the answer :
If Err = 32755 Then ' User chose Cancel.
Exit Sub
End If
when the property CancelError = true
If Err = 32755 Then ' User chose Cancel.
Exit Sub
End If
when the property CancelError = true
If the OK button is clicked, Comdlg accept the user's input/selection, if cancel is clicked, the input/selection will be discarded (the fileName property will not have anything)
Regards
Dalin