Think I may have solved it with a timer - does this look okay ? I'd prefer it to be hidden though, currently there's a text box with a flashing cursor
Private Sub rfidbox_textchanged(sender As System.Object, e As System.EventArgs) Handles rfidbox.TextChanged
Timer1.Stop()
Timer1.Start()
End Sub
Tick event
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
Timer1.Stop()
cardnumber = rfidbox.Text.ToString
Dim name As String
Dim x As New signclass
If rfidbox.Text = "" Then
Else
name = x.getnamefromcard(rfidbox.Text.ToString)
MsgBox(name)
rfidbox.Text = ""
End If