vpl4
asked on
Disable downloading from program using IE object
I wrote a browser program using the Microsoft Internet Explorer object. Is there a way to disable downloading of files inside my program?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sorry write bCancel=true in that event
ASKER
Thanks Ber, this would allow me to limit certain downloads and not every single one of them. It is the right thing I needed.
here is the details about filedownload event from MSDN online
**************************
FileDownload Event
--------------------------
Fires to indicate that a file download is about to occur. If a file download dialog is to be displayed, this event is fired prior to the display of the dialog.
Syntax
Private Sub object_FileDownload( _
ByRef bCancel As Boolean)
Parameters
object
Object expression that resolves to the objects in the Applies To list.
bCancel
Boolean that specifies whether to continue the download process and display the download dialog.
false
Default. Continue with the download process and display download dialog.
true
Cancel the download process.
Remarks
This event allows alternative action to be taken during a file download.