How to create an automated input box.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I have the code below that will evaluate a string of characters. If
its less then 12 long it will trigger a message box if its equal it
will save the information and close the form.

I have this currectly on a button event, how could i place this same
logic say once i enter in my last character it will trigger the logic
written in the button control.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnOK.Click
If Len(Me.txtBarCode.Text) = 12 Then
_barcode = Me.txtBarCode.Text
Close()
Else
MessageBox.Show("The Current BarCode Scanned was not
correct, Please Re Enter")
Me.txtBarCode.Text = String.Empty
txtBarCode.Focus()
End If
End Sub
.



Relevant Pages

  • Re: I only need alphabetic characters
    ... I don't want to drop some characters from the string. ... > Dim GenCharMap As Long ... > Private Sub AddRangeToCharMap(ByVal inLow As Byte, ...
    (microsoft.public.vb.general.discussion)
  • Re: How to omit blank spaces in the text?
    ... Private Sub Command1_Click ... Dim ssql As String, ssql2 As String, ssql3 As String, trimname As String ... character set from &H21 to &H7E provides for ASCI alpha numeric characters ... >> When the password is first created you calculate the hash and store>> that, ...
    (microsoft.public.vb.general.discussion)
  • Re: automating (alt & f11)
    ... Private Sub CommandButton5_Click ... Dim PW As String ... You can change the starting spot in for you password in the HiddenPassword constant, and also vary the number of characters between the letters of your password, you just have to adjust the starting point and Step values in the For-Next loop. ...
    (microsoft.public.excel.programming)
  • Re: Controls Collection
    ... Count 6 characters to start the index after the> ... Find the position of in the string (-1 to go to the character before ... > Then you can use the Controls collection to get the string... ... > Private Sub Button1_Click ...
    (microsoft.public.dotnet.languages.vb)
  • Re: about <>
    ... The operation is contracting the set of remaining characters by 1 Angelito ... an ever-decreasing range of positions at the start of the string. ... > Private Sub Command1_Click ... > Private Function ShuffleAs String ...
    (microsoft.public.vb.general.discussion)