title: vb.net subroutine in event handler gives nullobjectreference
body: <p>I can't seem to figure out what's going on here:</p>
  
  <p>EDIT: Let's try this... here's an outline of my code...</p>
  
  <pre><code>    Class form1
      Dim table1 as DataTable
  
  
      Sub refreshdata()
           table1.load() 'this puts data in table1
      End Sub
  
      Sub sub1 ()
           msgbox(table1.rows.count)  'this returns the number 15
       End Sub
  
      Sub combobox_closed (ByVal...) Handles ComboBox1.DropDownClosed
           msgbox(table1.rows.count)   'this returns the NullReferenceException
  </code></pre>
  
  <p>So what's the difference between the last two subs? Why can one access the table and not the other?</p>