就是我应该怎么写用来监听它有没有在扫描
Public Class TextChangedEventArgs Inherits RoutedEventArgs
Private Sub textChangedEventHandler(ByVal sender As Object,ByVal args As TextChangedEventArgs)
TextBox1.AppendText("正在扫描" & vbCrLf)
End Sub
------解决思路----------------------
什么扫描,ps/2口扫码枪?我用过这样的Private Sub enterinput(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress,然后判断输入的键 e.KeyChar是不是回车System.Convert.ToChar(13) 一般扫码枪好像都默认在扫码后加回车吧,还可以方便用键盘调试程序