Question Automatically Save the File and NOT Display the Save Dialog of a WebBrowser Control

pidyok

Member
Joined
Feb 10, 2009
Messages
19
Programming Experience
Beginner
Would like to see how to get around this as I don't have the direct URL of the image... Below is the code I am using to get to the image file but the Save Dialog gets in the way...

VB.NET:
    Sub Get_LGF_Wx()
        wbMain.Navigate("http://www.avmet.ae/metproducts.aspx?prod=LOCAL%20AREA%20FORECAST")
        AddHandler (wbMain.DocumentCompleted), AddressOf wbMainLoaded
    End Sub

    Public Sub wbMainLoaded()
        wbMain.Navigate("javascript:__doPostBack('ctl17$lnklaf','')")

       [B][U] 'HOW CAN I STOP THE SAVE DIALOG FROM APPEARING AND INSTEAD, SAVE THE FILE AUTOMATICALLY [/U][/B]
                 'I will be loading the file to a PictureBox
    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Get_LGF_Wx()
    End Sub
 
Back
Top