Private Sub CusSearch_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CusSearch.TextChanged
Try
If ComboBoxSearch.Text = "รหัสลูกค้า" Then
Me.CustomersTableAdapter.id2(Me.CarDataSet.Customers, CusSearch.Text)
ElseIf ComboBoxSearch.Text = "ชื้อลูกค้า" Then
Me.CustomersTableAdapter.name(Me.CarDataSet.Customers, CusSearch.Text)
ElseIf ComboBoxSearch.Text = "เบอร์โทร" Then
Me.CustomersTableAdapter.TEL(Me.CarDataSet.Customers, CusSearch.Text)
ElseIf ComboBoxSearch.Text = "ลายละเอียดรถ" Then
Me.CustomersTableAdapter.detail(Me.CarDataSet.Customers, CusSearch.Text)
End If
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show(ex.Message)
End Try
End Sub