how to open a new youtube page via the button?

  • Thread starter Thread starter Matevsz
  • Start date Start date
M

Matevsz

Guest
Hi all, how to open a new youtube page via the button "Like"?

1293751.pngCode button Like:

1293752.png

My button code:

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim buttonele As HtmlElementCollection = WebBrowser1.Document.All
For Each webpageelement As HtmlElement In buttonele
If webpageelement.GetAttribute("id") = "likeText" Then
webpageelement.InvokeMember("click")
End If
Next
End Sub

but nothing happens when you press it

Continue reading...
 
Back
Top