I am trying to create a webform that List down all the Customers Fullname, and through textbox input i should find name in listbox.
ListBox has a DataSource, and DisplayMember
----------------------
DataSource: BiddersFullnameQuery
DisplayMember: Fullname
----------------------
this is code:
Private Sub txtSearchBidder_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSearchBidder.TextChanged
With BiddersList
For x As Integer = 0 To .Items.Count - 1
If .Items(x).ToString.ToLower = txtSearchBidder.Text.ToString.ToLower Then
.SelectedItem = txtSearchBidder.Text
End If
Exit For
Next
End With
Exit Sub
End Sub
Thank you in advance for your help.
ListBox has a DataSource, and DisplayMember
----------------------
DataSource: BiddersFullnameQuery
DisplayMember: Fullname
----------------------
this is code:
Private Sub txtSearchBidder_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSearchBidder.TextChanged
With BiddersList
For x As Integer = 0 To .Items.Count - 1
If .Items(x).ToString.ToLower = txtSearchBidder.Text.ToString.ToLower Then
.SelectedItem = txtSearchBidder.Text
End If
Exit For
Next
End With
Exit Sub
End Sub
Thank you in advance for your help.