Rich Text Box Problem

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.
 
S

Siva M

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top