If StringToSearch Like (Me.TextBox1.Text) Then 'If stringToSearch Like " & (me.textbox1.text) & '"%" Dim myCurrentCell As DataGridViewCell = gRow.Cells(1) Dim myCurrentPosition As DataGridViewCell = gRow.Cells(0) DataGridView1.CurrentCell = myCurrentCell CurrentRowIndex = DataGridView1.CurrentCell.RowIndex CurrentRowIndex = DataGridView1.CurrentRow.Index DataGridView1.CurrentRow.DefaultCellStyle.BackColor = Color.LightSkyBlue Found = True End If
If (StringToSearch.Contains(Me.TextBox1.Text)) Then
If StringToSearch Like (Me.TextBox1.Text) Then 'Change to the following statment IF Instr(StringToSearch, lcase(trim(Textbox1.Text))) <> 0 Then
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)