WebBrowser problems

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • FierceMuppet2

    WebBrowser problems

    I have VS2005 and I dropped WebBrowser control onto a form and navigated to a
    page without any problem. Now, I want to access the HTML Document of the
    control.

    Dim d As System.Windows. Forms.HtmlDocum ent
    d = obj.Browser.Doc ument
    v = d.all.item(Elem ent).GetAttribu te("value")

    With this I am getting "Object refernece not set to instance of object.")

    This used to work and then stopped working.
  • MACH II

    #2
    RE: WebBrowser problems

    The code should read

    Dim d As new System.Windows. Forms.HtmlDocum ent
    ....

    "FierceMupp et2" wrote:
    I have VS2005 and I dropped WebBrowser control onto a form and navigated to a
    page without any problem. Now, I want to access the HTML Document of the
    control.
    >
    Dim d As System.Windows. Forms.HtmlDocum ent
    d = obj.Browser.Doc ument
    v = d.all.item(Elem ent).GetAttribu te("value")
    >
    With this I am getting "Object refernece not set to instance of object.")
    >
    This used to work and then stopped working.

    Comment

    Working...