-2

good morning

I used a "Regex.Match" code to take the first photo of the google image result.

how can we take the second photo?

thank you very much for your help

    Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted

    Dim ww As WebRequest = WebRequest.Create(Me.WebBrowser1.Url.ToString)
    Dim HH As HttpWebResponse = ww.GetResponse
    Dim RDD As Stream = HH.GetResponseStream
    Dim R As New StreamReader(RDD)
    PictureBox1.LoadAsync(Regex.Match(R.ReadToEnd, """(https://encrypted-tbn0.gstatic.com/images[^""]+?)""", RegexOptions.IgnoreCase).Groups(1).Value)

    End Sub

picture of the interface https://www11.0zz0.com/2022/05/12/08/337065375.png

0 Answers0