hansu
Programmer
- Mar 12, 2002
- 89
I use the CommonDialog control (cdlMain) for the user to save html files. I want to prevent the user from changing directories. It seems to me that setting the flag cdlOFNNoChangeDir doesn't have any influence.
Thanks for your help.
Code:
strDir = "d:\hutlogs\confirmations"
With cdlMain
.CancelError = True
.DefaultExt = "html"
.FileName = txtFields(0) & " " & Date
.Filter = "HTML Datei (*.html)|*.html"
.Flags = cdlOFNHideReadOnly + cdlOFNPathMustExist + cdlOFNOverwritePrompt+cdlOFNNoChangeDir
.InitDir = "d:\test"
.ShowSave
End With
Thanks for your help.