1

I am currently using C# and webbrowser on a windows application to navigate to a site that will automatically trigger a file download dialog or Open/Save/Cancel Dialog. The problem is I want to close the form window that is currently running the web navigation after the file download dialog appears. So I am here asking is there an event that will be triggered on file download occasion so that i can put:

this.close()

on that event.

John Saunders
  • 160,644
  • 26
  • 247
  • 397
See Sharp Beta
  • 147
  • 1
  • 4
  • 12

1 Answers1

0

You can subscribe to DWebBrowserEvents2.FileDownload event.

Check it out...

Community
  • 1
  • 1
J.Wells
  • 1,749
  • 12
  • 13