I have this block of code where l run through a table and display matched results in a listbox.
It works fine, but my question is how do l enable the user to select an item in the listbox once it is displayed?
Suggestions are welcomed as always. Thanks
Try
adapter.Fill(dt)
For Each dr In dt.Rows
Dim cns
Dim bytes As Byte() = Nothing
bytes = dr.Item("FingerP")
cns = dr.Item("CaseFileNumber")
Dim template = New DPFP.Template()
template.DeSerialize(bytes)
'Perform match
matcher.Verify(FeatureSet, template, matchResult)
If matchResult.Verified Then
EventHandlerStatus = Gui.EventHandlerStatus.Success
MessageBox.Show("Verified!")
'Exit For 'success
'txtcasenumber.Text = cns
'ListView1.Items.Add(cns)
listbox.Items.Add(cns)
'DataGridView1 = cns
End If
If Not matchResult.Verified Then EventHandlerStatus = Gui.EventHandlerStatus.Failure