• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 313
  • Last Modified:

VB.NET Error in webbrowser function

hello friends, i am getting error in this function i am need help for resolve the problem.
the funcrion is
Dim doc As Object
        Dim element As Object
        Dim elemento As Object
        Dim i As Integer
        doc = webBrowser1.Document as HtmlDocument
        element = doc.links
        For i = 20 To element.count - 2

            elemento = element.item(i)
            If InStr(Endereco.Text, elemento.outerText) > 0 Then
            End If
i am getting error of statement expected, please help me for resolve this.
1 Solution
Jacques Bourgeois (James Burger)PresidentCommented:
doc = webBrowser1.Document as HtmlDocument

This is an assignment, but on the right side, you have the syntax of a declaration.

Probably should be

doc = webBrowser1.Document
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now