Quote Originally Posted by l_gaminde View Post
Robert No I don't understand what your saying changing the caption Im lost
I want byte1 byte2 and byte3 on one line, then the next line down the same thing this is serial data so byte1-3 are different values on each line, there just being used for formatting a string value so the layout is simple and easy.
l_gaminde,

For a Label, do the following,

Set the Multiline property of the label object to true. Also, make the scrollbars visible if you want to. End your command line with & vbcrlf like in the code that you posted

Code:
label1.Caption = byte1 & byte2 & byte3 & vbcrlf
For a Textbox, do the following,
  • Set Multiline to true
  • Set ReadOnly to true
  • Write your code like the following
Code:
textbox1.text = byte1 & byte2 & byte3 & VbCrLf             'This is the first line
textbox1.AppendText(byte1 & byte2 & byte3 & VbCrLf)   'These are the following lines
I'm not in front of my personal PC, so I haven't tested this code but it should work. Let me know if you have problems.

Robert