My VB6 has a Form with a Textbox.
Actually my work behind reading Barcode thru Barcode Reader into the
TextBox, The Maxlength of the TextBox is 12.
If I Input some characters manually into the TextBox Say "abc" (without quotes)
now the cursor is in 4th place from there it won't allow Barcode Reader to read.
It should start from 1st place only by erasing already existing 3 characters.
This is my situation.
if the above question is not clear
don't use
Text1.SelStart =0
Text1.SelLength = Len(Text1.Text)
in Got_Focus Event.
After typing "ABC" (without quotes) the cursor is in 4th place ok. My barcode length is 12 characters.
When I read barcode thru reader it starts from 4th place
& the last three characters of barcode cut off due to max.
length of the Textbox is 12.
What i want is before reading barcode the already existing
Characters "ABC" (without quotes) in the Textbox should be cleared.