CommonDialog控件的取消问题。(急。。期待中。。)
我在VB中用了一个CommonDialog控件(.showSave),
但不知道如何确定用户点选的是"保存"还是"取消"?
msdn中有一段如下:(但试了一下没用)
CommonDialog1.ShowOpen
If Err <> cdlCancel Then
If FileChannel Is Nothing Then
MsgBox "No File Exchange channel"
Else
Set FileXfer = FileChannel.SendFile(Nothing, Nothing, _
CommonDialog1.FileName, CNFF_SFOPT_NONE)
If FileXfer Is Nothing Then
ErrorMsg "Failed to send file"
End If
End If
End If
急。期待答案中。。。