Results 1 to 2 of 2

Thread: CommonDialog Question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Posts
    253

    Post

    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!!!

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width