title: combobox search invalidargument=value of '0' is not valid for 'index'. parameter name index vb.net
body: <p>i am using a textbox to search in an access database and then to show the matches in combobox , it is working fine but there is an error accrued when the user enters not matched entry , </p>
  
  <p>this is my code :</p>
  
  <pre><code>Private Sub TextBox9_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox9.TextChanged
      Try
          ComboBox3.DataSource = Me.MyDataset.Items.Select("ItemName like '%" &amp; TextBox9.Text &amp; "%'")
  
  
          ComboBox3.Update()
  
          If ComboBox3.Items.Count &lt;&gt; 0 Then
  
              ComboBox3.DroppedDown = True
              Me.Cursor = Cursors.Default
              Cursor.Show()
          Else
  
              If ComboBox3.DroppedDown = True Then
                  ComboBox3.DroppedDown = False
              End If
  
          End If
  
          If TextBox9.Text = "" Then
              ComboBox3.DroppedDown = False
          End If
      Catch ex As Exception
          MsgBox(ex.Message, MsgBoxStyle.Critical Or MsgBoxStyle.OkOnly, "Error")
      End Try
  End Sub   
  </code></pre>
  
  <p>and when the user enters wrong entry or not matched this error appear :
  invalidargument=value of '0' is not valid for 'index'. parameter name index vb.net</p>
  
  <p>the question is how to handle this error </p>