Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# SerialPorts
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?
 

Glenn
Posted 3-Dec-12 7:01am
Comments
Sergey Alexandrovich Kryukov at 3-Dec-12 13:05pm
   
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?
--SA
glennPattonWork at 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.
Sergey Alexandrovich Kryukov at 4-Dec-12 11:14am
   
Well, yes, this would be the first thing to check...
--SA
glennPattonWork at 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
0 Sergey Alexandrovich Kryukov 354
1 Richard MacCutchan 310
2 OriginalGriff 275
3 Vinay Mistry 163
4 Jared Sanow 145
0 Sergey Alexandrovich Kryukov 5,939
1 OriginalGriff 4,885
2 CPallini 2,473
3 Abhinav S 1,507
4 Richard MacCutchan 1,437


Advertise | Privacy | Mobile
Web02 | 2.8.140814.1 | Last Updated 3 Dec 2012
Copyright © CodeProject, 1999-2014
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