Link to home
Start Free TrialLog in
Avatar of gali040898
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
Avatar of Dalin
Dalin

gali,
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

ASKER CERTIFIED SOLUTION
Avatar of tward
tward

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gali040898

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