Why isn't my filter working in the Common Dialog ShowOpen Function 
Author Message
 Why isn't my filter working in the Common Dialog ShowOpen Function

Hi,

For some reason, I can't get my filter to work when I call the
CommonDialog1.ShowOpen function. I've set my filter to search for *.dat
files. The Open dialog box opens but still lists all the files in the
directory. It does not filter out the *.dat files.

I've used the AppWizard to create a SDI application. Is the CommonDialog
inheriting settings that are overiding my specified settings?

This seems like a small problem with a simple solution but I am stumped. Can
someone please offer advice?

Thanks,

-Allan



Wed, 28 Sep 2005 01:37:46 GMT  
 Why isn't my filter working in the Common Dialog ShowOpen Function
Hi Allen,

Try this

    With Me.CommonDialog1
        .Filter = "Dat Files (*.dat)|*.dat|Datfiles (*.dat)|*.dat"
        .ShowOpen
    End With

Krgrds,
Perry



Quote:
> Hi,

> For some reason, I can't get my filter to work when I call the
> CommonDialog1.ShowOpen function. I've set my filter to search for *.dat
> files. The Open dialog box opens but still lists all the files in the
> directory. It does not filter out the *.dat files.

> I've used the AppWizard to create a SDI application. Is the CommonDialog
> inheriting settings that are overiding my specified settings?

> This seems like a small problem with a simple solution but I am stumped.
Can
> someone please offer advice?

> Thanks,

> -Allan



Thu, 29 Sep 2005 01:41:49 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Common Dialog filter filter's everything

2. Why isn't my code working?

3. why isn't this api working?

4. why isn't this api code working?

5. Why Isn't MyBase.New() Working Here?

6. Why isn't this working??

7. Why isn't this working?

8. why isn't this working?

9. Why isn't this working

10. Why isn't this working?

11. Why isn't this working?

12. why isn't this working

 

 
Powered by phpBB® Forum Software