View Single Post
  #5 (permalink)  
Old November 5th, 2007, 11:31 AM
samjudson's Avatar
samjudson samjudson is offline
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

How about looping through each HtmlElement returned by webBrowser.Document.GetElementByTagName("a") and handling the Click event.

Then in the Click event handler check the href attribute. If it is the file you want then do the download manually and set e.ReturnValue to false, otherwise set it to true.

/- Sam Judson : Wrox Technical Editor -/