Ok. muchas gracias por responder, la verdad tuve que mejorar el cod. para poder buscar por 'codigo', porque se demoraba mucho en buscar por ej. el ultimo (el .csv es grande)
adjunto parte de lo que hice.
Código vb:
Ver originalPublic objR As New StreamReader("\archivo.csv")
Public oLine As String = ""
Public oTexto As New ArrayList()
Public split() As String
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Do
oLine = objR.ReadLine
If Not oLine Is Nothing Then
oTexto.Add(oLine)
End If
Loop Until oLine Is Nothing
objR.Close()
End Sub
<BOTON>
Dim bool As Boolean = False
For Each Me.oLine In oTexto
split = oLine.Split(";")
If Not oLine Is Nothing Then
For i = 0 To split.Length - 1
If split(i) = split(Nº_columna_codigo) Then
If TextBox1.Text = split(i) Then
If TextBox1.Text <> "" Then
bool = True
TextBox2.Text = ("Se encuentra el código")
End If
End If
End If
Next
End If
Next
If Not bool Then
MsgBox("No se encontro el código")
End If
oTexto.Add(oLine)