Results 1 to 4 of 4

Thread: CommonDialog probleme (solved)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2004
    Location
    Belgium
    Posts
    77

    CommonDialog probleme (solved)

    Hi, I have a little problem, in my Save Box I don't see any file, even those the file extention I set in the filter property.

    CDialog1.DialogTitle = "Créé une nouvelle bibliothèque"
    CDialog1.DefaultExt = "dtk"
    CDialog1.Filter = "DVD-ROM (*.dtk)|*.dtk |DVD-Video (*.dtv)|*.dtv"
    CDialog1.Flags = &H800
    CDialog1.ShowSave

    When the box open, even the *.dtk and *.dtv are not show. What's the prob please ?

    Thanks in advance.
    Last edited by choas; Feb 21st, 2004 at 01:19 PM.

  2. #2
    Fanatic Member TheVader's Avatar
    Join Date
    Oct 2002
    Location
    Rotterdam, the Netherlands
    Posts
    871
    When I run your code and add some .dtv files to my harddisk, I do see them... Looks like there's nothing wrong with your code...
    Author for Visual Basic Web Magazine

    My articles on the Web Browser Control:
    Using the Web Browser Control & Using the DHTML Document Object Model

    The examples referenced in the articles can be found here:

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: CommonDialog probleme

    Originally posted by choas
    Hi, I have a little problem, in my Save Box I don't see any file, even those the file extention I set in the filter property.

    CDialog1.DialogTitle = "Créé une nouvelle bibliothèque"
    CDialog1.DefaultExt = "dtk"
    CDialog1.Filter = "DVD-ROM (*.dtk)|*.dtk |DVD-Video (*.dtv)|*.dtv"
    CDialog1.Flags = &H800
    CDialog1.ShowSave

    When the box open, even the *.dtk and *.dtv are not show. What's the prob please ?

    Thanks in advance.
    Are you concerned that the user doesn't see both of the two choices at the same time?

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Feb 2004
    Location
    Belgium
    Posts
    77
    Ok, it was a stupid error, in fact in this line :

    CDialog1.Filter = "DVD-ROM (*.dtk)|*.dtk |DVD-Video (*.dtv)|*.dtv"

    you can see a space between *.dtk and |DVD-Video, so visible file were *.dtk_ and not *.dtk.

    Sorry but it was so stupid that it took me so much time to find oO

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