I am using Microsoft’s Web Browser Control embedded on an Access Form to
browse a specific site. I have a good reason for doing so; the pages on
this site run code which aborts their display unless their window is the
top window; they also treat all child windows as not-logged in windows. So
I have not accomplished what I want with HTA’s or IFrames or Pop-Up
Windows. But the Access Form/MS Web Browser combination gives me a top
window with the site in a logged in state while allowing me to manipulate
it and its contents with code in the Access form module. Fabulous!
Part of my application requires browsing the local machine for a file. The
web browser has a nice gui for this; all one has to do is navigate to the
drive or folder wanted in code (.Navigate file://path) and then the gui
takes over. I thought I would use the web browser in the spirit of design
efficiency; since the user must use the web browser for the web site
browsing, why not use the same control for file browsing. But I cannot find
any way to identify the file checked. (Bear in mind that in Access I cannot
use the extended properties and methods of the web browser available in
..NET 2.0). Do you know a way?
If I don’t come up with anything tomorrow I’ll put a file input on the web
browser’s document body. I am 99 44/100ths% sure this will work fine. But I
feel I should not have to do it.
I suppose you may suggest other ways. Please, remember that whatever I use,
it must act as a top window, it must have a rich collection of properties
and methods, and it must be code-able as an object in the form/application.
I’m thoroughly familiar with API file browsing having written my own
manifestation of it many years ago; but I’ll use it only as a last resort.
I want to make the web browser tell me the name/path of the file I have
clicked!
--
Lyle Fairfield