Hello,

I've come across a problem whilst coding my web browser control. Any help would be very much appreciated. Here's the deal:


VB Code:
  1. Private Sub net_DocumentComplete(ByVal pDisp As Object, URL As Variant)
  2.     If (pDisp = net.Application) Then
  3.             work.Text = net.Document.documentelement.innerHTML
  4.     End If
  5.     Call yell
  6. End Sub

Now, before I even navigate to a page. (On form load in fact), my web browser control (net) fires the following error:
It highlights the work.text line
Code:
Rune-time error '91':
Object variable or With block variable not set
What is the cause of this problem? Thanks a lot.
Jord