FileDownload event not fire

Posted on 2005-03-28
Medium Priority
Last Modified: 2008-02-01

I'll like to trap the filedownload event but it's not fired. I create a VB6 program. I know there is a possibility to use Webbrowser control but I want to do it only by code. I don't want to create a new browser.

Here my VB example:

Option Explicit

Private WithEvents mobjIE As SHDocVw.InternetExplorer

Private Sub Form_Load()

  Set mobjIE = New SHDocVw.InternetExplorer
  mobjIE.AddressBar = True
  mobjIE.Navigate "http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/ie6setup.exe"
  mobjIE.Visible = True

End Sub

Private Sub mobjIE_FileDownload(Cancel As Boolean)
  MsgBox "FileDownload"
End sub

Question by:SPB_IT
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 96

Accepted Solution

Bob Learned earned 1000 total points
ID: 13646464
If you click on the link in IE, you get a download dialog box, which is what you are probably getting from the WebBrowser control.


Author Comment

ID: 13647609
This is a example. My concern is I would like to trap this event because I want to manage download file from a user.

Author Comment

ID: 13980335
Microsoft has confirmed is a bug from the SHDOCVW.DLL with VB.
The only way is to trap the Event with Visual C++ and manage this "feature".

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question