title: how do i convert late binding syntax to early binding syntax in vb.net?
body: <p>i have this code:</p>
  
  <pre><code> Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
      Try
          ' retrieving the administration table.
          con.Open()
          DataAdapter1.SelectCommand = sqladmin
          DataAdapter1.Fill(ds, "stratos")
          DataGridView1.DataSource = ds
          DataGridView1.DataMember = "stratos"
          con.Close()
      Catch myerror As MySqlException
          MessageBox.Show("Error Retrieving Administration Table: " &amp; myerror.Message)
      End Try
  
  
      Try
          ' retrieving the projects list.
          con.Open()
          DataAdapter2.SelectCommand = sqlprojects
          DataAdapter2.Fill(ds2, "projects")
          ListBox1.Items.Clear()
  
          For Each DataRow In ds2.Tables("projects").Rows
  
              ' ##### THE ERROR OCCURS ON THE LINE BELOW: ##### '
  
              ListBox1.Items.Add(DataRow("project_name"))
          Next
          con.Close()
  
      Catch myerror As MySqlException
          MessageBox.Show("Error Retrieving Projects List: " &amp; myerror.Message)
      End Try
  </code></pre>
  
  <p>and im getting the following error:</p>
  
  <blockquote>
    <p>Error 1: Option Strict On disallows late binding.</p>
  </blockquote>
  
  <p>Im using visual basic 2010 express on a gateway laptop thats running Windows 7 OS
  How do i resolve this error?</p>