It stays on one line. Remember you are changing the caption of the label object.
Robert
It stays on one line. Remember you are changing the caption of the label object.
Robert
"No one is completely worthless. They can always serve as a bad example."
Anonymous
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
For a Textbox, do the following,Code:label1.Caption = byte1 & byte2 & byte3 & vbcrlf
- Set Multiline to true
- Set ReadOnly to true
- Write your code like the following
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.Code:textbox1.text = byte1 & byte2 & byte3 & VbCrLf 'This is the first line textbox1.AppendText(byte1 & byte2 & byte3 & VbCrLf) 'These are the following lines
Robert
"No one is completely worthless. They can always serve as a bad example."
Anonymous
ok the first one doesn't work, thats what I have been wondering about it sits on line one and changes per each set of inputs and never drops down vbcrlf chr(10) or 13 nothing works on the end of the line ?? works in the middle like your test but not at the end.
I will try the append thing now it will not read the first line textbox1.text again because I may have 30 to 100 or more lines to download
Bookmarks