how to close a webbrowser in vb.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paddy007
    New Member
    • Jul 2007
    • 1

    how to close a webbrowser in vb.net

    i opened browser using system.diagnost ics.process.sta rt(url) in the click event of the button & when i download the file the download dialog saves the file & closes but my web browser doesn't close so how do i close it automatically once the download dialog closes automatically.

    thanks,
    padmaja
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by paddy007
    i opened browser using system.diagnost ics.process.sta rt(url) in the click event of the button & when i download the file the download dialog saves the file & closes but my web browser doesn't close so how do i close it automatically once the download dialog closes automatically.

    thanks,
    padmaja
    This has to be done using JavaScript.
    The problem with this is that JavaScript is blocked from closing the browser. When the JavaScript function is called, the user is presented with a prompt asking them if they want to allow the JavaScript to close their browser for them.

    -Frinny

    Comment

    Working...