PDA

Click to See Complete Forum and Search --> : CommonDialog Question


Forest Dragon
Dec 11th, 1999, 02:41 AM
When you are in a directory and trying to save a file with a name that similar to a sub-directory, the common-dialog control thinks you want to open the sub-directory.

You can try these ideas:

1. Set the common-dialog's Filename property in the design environment to the value you want and when the common-dialog's ShowSave method is invoked, just press the OK button.

2. When the "Save file" dialog is displayed on the screen and you need to select a file name, type it with the extension of the file (ex: QWERTY2.txt) and then press the OK button.

Good Luck!!!

QWERTY
Dec 11th, 1999, 11:20 AM
I'm using CommonDialog Save Method. Let's say that I have a directory C:\QWERTY and one folder in it (could be QWERTY2). My problem begins when user wants to save file in Directory C:\QWERTY. File name has to be "QWERTY2". CommonDialog doesn't want to save that file name in that directory. Instead it opens directory C:\QWERTY\QWERTY2. Is there a way to avoid it? I hope you know what I mean
Thanks in advance

------------------
Visual Basic Programmer
------------------
PolComSoft
You will hear a lot about it.