Im using common dialog with this code,
and it doesnt work to when the cancel
button is pressed.

Code:
        With frmPG.CommonDialog1
            .fileName = sLastSave
            .DialogTitle = "Save State"
            .DefaultExt = ".pcs"
            .Filter = "PicBot Saved State | *.pcs"
            .ShowSave
            If .fileName = "" Then Exit Sub
        End With
How can I use this code and know when the cancel
button is pressed?

[Edited by Evan on 11-26-2000 at 12:52 PM]