API open/save dialog box that shows pictures

G

Guest

I have successfully used the API open/save dialog box programming given in
http://www.mvps.org/access/api/api0001.htm. I am using this to help me find
the file locations and names of pictures and store them in a database.

I was wondering if there is a way to have a similar dialog box that shows a
picture similar in Excel and Word when you select Insert/Picture/From File.
The dialog box shows the directory structure on the left and when a picture
is selected the picture is shown on the right side of the dialog box.

Thanks for your help.
 
D

Douglas J. Steele

You can set the dialog's view to Thumbnails (it's the 4th icon to the right
of the "Look in" box at the top)

Unfortunately, there isn't a setting to do it programmatically: you either
have to manually switch the view, or else "hook" the dialog in code to
change the setting. Randy Birch has an example of hooking the dialog to do
this at http://vbnet.mvps.org/code/hooks/fileopensavedlghooklvview.htm

Obligatory warning: Randy's site is aimed at VB programmers. Because there
are significant differences in the controls available for forms in VB vs.
Access, some of Randy's examples can't simply be copied into Access. Having
said that, though, I think this particular sample should work fine in
Access.
 
G

Guest

Thanks, I'll give these a try.

Douglas J. Steele said:
You can set the dialog's view to Thumbnails (it's the 4th icon to the right
of the "Look in" box at the top)

Unfortunately, there isn't a setting to do it programmatically: you either
have to manually switch the view, or else "hook" the dialog in code to
change the setting. Randy Birch has an example of hooking the dialog to do
this at http://vbnet.mvps.org/code/hooks/fileopensavedlghooklvview.htm

Obligatory warning: Randy's site is aimed at VB programmers. Because there
are significant differences in the controls available for forms in VB vs.
Access, some of Randy's examples can't simply be copied into Access. Having
said that, though, I think this particular sample should work fine in
Access.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top