Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with CommonDialog control

Status
Not open for further replies.

hansu

Programmer
Mar 12, 2002
89
I use a CommonDialog to let the user select html files:
Code:
With cdlMain
    .CancelError = True
    .DefaultExt = "html"
    .Filter = "HTML Dateien (*.html)|*.html"
    .Flags = cdlOFNHideReadOnly + cdlOFNFileMustExist + cdlOFNPathMustExist
    .ShowOpen
End With
When I run the project this shows all the html files. (Windows 2000) On the user machine (Windows XP) the CommonDialog doesn't show the html files.
Is it a problem of setting the flags not correctly? Or is it because of the different Windows version?

Thanks for your assistance.
 
hansu,
I have XP, your code shows all HTML files on my PC. Check for the folders view option settings on the users machine. Can they see read only files?

vlad
 
Thanks for your suggestion, vlad. I will check the settings on the user machine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top