Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Prevent directory change in SaveFileDialog

I've noticed that in VB6 you could (apparently) set a flag to prevent the user from changing directory in a commondialog component. I know I could write my own save file dialog and prevent changes but for speed is there anyway of doing this with a SaveFileDialog component?

Cheers in advance
[305 byte] By [MarkDuncan] at [2007-11-11 7:39:11]
# 1 Re: Prevent directory change in SaveFileDialog
The SaveFileDialog's RestoreDirectory property is equivalent to the cdlOFNNoChangeDir flag in VB6.
Phil Weber at 2007-11-11 21:48:43 >
# 2 Re: Prevent directory change in SaveFileDialog
Cheers Phil I'll give that a try
MarkDuncan at 2007-11-11 21:49:46 >