Click here to Skip to main content
13,407,331 members (54,695 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi All,

Following some adivce from Pete O'Hanlon I have started to use a listBox for reading the data from a Serial Port, I have set a list Box and a Richtext box for comprison I have noticed the Rich text box will display the entireity, wrapping the text, the list box does not auto wrap with the multiline set to true like the RTB does. As I am looking to interface to legacy device (used by Fred Flintstone probably) which I dont have access to at the moment they might just spew torrents of data which would fill up the box. I know the list box gets all the data it is just displaying it if it goes off the screen. I cant find an example that has large ammounts of text just very short words "one", "two" not like the below:
Write_Board("hello world! this is a really long message to see which updates faster the listbox or the rich text box lets start going through the opl for the actual commands");

Or should I stick to the old RTB which I know and love?

Posted 3-Dec-12 8:01am
I would suggest you make a custom control for such purposes, maybe not even based on ListBox. It could be a pretty big work with some research on what you can use for implementation.
By the way, you always need to tag your UI library. The name "ListBox" -- what's the full type name?
glennPattonWork 4-Dec-12 3:35am
I was thinking the same, just trying to make sure I hadn't over looked the listBoxes version of Multiline.
Well, yes, this would be the first thing to check...
glennPattonWork 4-Dec-12 11:23am
However I can't find one!! (Doh!)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02-2016 | 2.8.180212.1 | Last Updated 3 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100