find the value member in listbox
-
hi , i have an idea i wish to do it i have a listbox it's disply member is StudentName and value member is StudentCode i want to write the student name in textbox and find this name in listbox by like examble i search for name Mohammed and i write in textbox Mo how can i select the first item match this thnx 4 help
MD_NADA
-
hi , i have an idea i wish to do it i have a listbox it's disply member is StudentName and value member is StudentCode i want to write the student name in textbox and find this name in listbox by like examble i search for name Mohammed and i write in textbox Mo how can i select the first item match this thnx 4 help
MD_NADA
Loop though the elements in the list. Call the
String.StartsWith
method on the display member for each element with the value entered in the listbox. If this method returns True for a particular item, the item begins with the text entered in the textbox.Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush