Rich Text Box Problem

  • Thread starter Thread starter Jim Campau
  • Start date Start date
J

Jim Campau

Ok I have a Rich Text Box and I am using a barcode scanner to make entries
to the Rich Text Box and it works, however here is the problem ...

I need to insert an "Enter" between each entry.

This is what I get now:

*123456**234567**345678*...

I need to get:

*123456*
*234567*
*345678*...

In real time as barcodes are read in

I have no Idea how to do this can someone please help.

Thanks in advance.
 
If you receive the entries as a string with embedded * characters, then you
can use String.Replace() as in:

Dim inputStr As String
inputStr = "*123456**234567**345678*"
inputStr = inputStr.Replace ("**", "*" & Environment.NewLine & "*")

HTH?

-Siva

Ok I have a Rich Text Box and I am using a barcode scanner to make entries
to the Rich Text Box and it works, however here is the problem ...

I need to insert an "Enter" between each entry.

This is what I get now:

*123456**234567**345678*...

I need to get:

*123456*
*234567*
*345678*...

In real time as barcodes are read in

I have no Idea how to do this can someone please help.

Thanks in advance.
 
Back
Top