Open File Dialog

P

PeterM

I've got a form where I use OpenFile to call the standard Open File dialog
box. It works great. Is there a way to open the actual dialog box inside a
form instead of it opening in it's own window?

Thanks in advance for your help!
 
R

Ron Hinds

No way. That's why it's called the "Open File dialog" - it's a modal dialog
box, which always has it's own window.
 
L

Larry Linson

PeterM said:
I've got a form where I use OpenFile to call the standard Open File dialog
box. It works great. Is there a way to open the actual dialog box inside a
form instead of it opening in it's own window?

You might find useful the example at
http://www.mvps.org/access/api/api0001.htm, which calls the standard Windows
Common Dialog from code, if that is not what you are doing. It too, will
open in its own dialog Window.

Larry Linson
Microsoft Access MVP
 
J

James A. Fortune

PeterM said:
I've got a form where I use OpenFile to call the standard Open File dialog
box. It works great. Is there a way to open the actual dialog box inside a
form instead of it opening in it's own window?

Thanks in advance for your help!

There might be a way to populate a treeview control dynamically with
file names (and directory nodes) as directories are selected. A command
button 'Open Selected File' could be used to pass the selected filename
to something similar to OpenFile. It sounds like a lot of work but if
you really need something inside a form it may work. Note: this is just
a vapor thought.

James A. Fortune
 
Top