Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. WebBrowser Control: Suppressing File Download Dialog

WebBrowser Control: Suppressing File Download Dialog

Scheduled Pinned Locked Moved Visual Basic
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mbire
    wrote on last edited by
    #1

    I am using a webbrowser control to load and show supported documents within it. for file types that it cannot embed, i want to automatically launch the application that is associated with that file and open it there. How can I solve the following problems 1. When I enter the following code line myWebBrowser.Navigate("C:\myFile.xls") How do i avoid the download dialog from popping up? 2. How can i tell if my webbrowser will not be able to embed this application but will be able to embed that one? 3. In which event of the WebBrowser control do i need to do this? Thanks for your assistance.

    V 1 Reply Last reply
    0
    • M Mbire

      I am using a webbrowser control to load and show supported documents within it. for file types that it cannot embed, i want to automatically launch the application that is associated with that file and open it there. How can I solve the following problems 1. When I enter the following code line myWebBrowser.Navigate("C:\myFile.xls") How do i avoid the download dialog from popping up? 2. How can i tell if my webbrowser will not be able to embed this application but will be able to embed that one? 3. In which event of the WebBrowser control do i need to do this? Thanks for your assistance.

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      I don't think you can. It is for security reasons since the user should be aware of the nature and type of files coming into his system.

      Vasudevan Deepak Kumar Personal Homepage
      Tech Gossips
      A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

      M 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        I don't think you can. It is for security reasons since the user should be aware of the nature and type of files coming into his system.

        Vasudevan Deepak Kumar Personal Homepage
        Tech Gossips
        A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

        M Offline
        M Offline
        Mbire
        wrote on last edited by
        #3

        Thanks for your reply. Ok, or maybe how do I cancel the download completely wen it is about to happen and initiate another process. Note I jus wanna cancel the download if it is going to make that download diolog box pop up otherwise if the browser can embed the document, i want it to continue.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups