Arranging the serial data in one line or any descriptive way

softhard

Active member
Joined
Sep 29, 2012
Messages
35
Programming Experience
Beginner
Hello,
I have data coming in through my serial port and i would like to set this data in one line or any descriptive way evry time i received a packet. For more details see the attachment. And also the datetime on each packet should be in one color and other data should be in not the same color.

Any help would be appreciated.
 

Attachments

  • namnlös.JPG
    namnlös.JPG
    31.3 KB · Views: 26
You'll need to set the WordWrap property to False if you don't want the text to wrap at the right edge. You'll then add a line break after each set of data. As for colouring the text, e.g.
Dim selectionStart = myRichTextBox.TextLength

myRichTextBox.AppendText(someText)

Dim selectionLength = myRichTextBox.TextLength - selectionStart

myRichTextBox.SelectionStart = selectionStart
myRichTextBox.SelectionLength = selectionLength
myRichTextBox.SelectionColor = someColor
 
Back
Top