Click here to Skip to main content
15,912,205 members
Home / Discussions / C#
   

C#

 
GeneralQuickly loading jpg thumbs Pin
Travelster19-Mar-05 6:28
Travelster19-Mar-05 6:28 
GeneralRe: Quickly loading jpg thumbs Pin
Dave Kreskowiak19-Mar-05 14:00
mveDave Kreskowiak19-Mar-05 14:00 
GeneralAutomatic create SelectCommand, InsertCommand, DeleteCommand and Paremeters like Server Explorer in vs.net Pin
god4k19-Mar-05 2:00
god4k19-Mar-05 2:00 
GeneralRe: Automatic create SelectCommand, InsertCommand, DeleteCommand and Paremeters like Server Explorer in vs.net Pin
sreejith ss nair19-Mar-05 19:33
sreejith ss nair19-Mar-05 19:33 
Generalinteracting with web service client side problem Pin
Ankit Aneja19-Mar-05 1:17
Ankit Aneja19-Mar-05 1:17 
GeneralSending “large” packed of data over TCP/IP using Socket Pin
Magnus2718-Mar-05 23:30
Magnus2718-Mar-05 23:30 
GeneralRe: Sending “large” packed of data over TCP/IP using Socket Pin
Judah Gabriel Himango19-Mar-05 19:39
sponsorJudah Gabriel Himango19-Mar-05 19:39 
GeneralTo Textbox or not to Textbox Pin
Todd_s0218-Mar-05 20:22
Todd_s0218-Mar-05 20:22 
As a side project, I'm rewriting an incomplete debugging tool over to C#. It's nothing more than a fancy RS232/serial port terminal program that displays all text received on the port. The part I'm pondering though, is how to display the incoming text. I'd like to:

- Colorize the text
- Display only X amount of lines. If another line comes in, toss the oldest ones out
- Autoscroll as new lines come in
- Be able to split the display and scroll over the same data

So I can do all this with a Textbox (RichTextBox to be exact), but a couple of things concern me, mainly to do with the fact that the textbox stores the text internally. Splitting the window requires using two textboxes, which would require duplicating the data. With alot of ports open, that could be alot of wasted ram. Second, to ensure only X lines are stored, it looks like I have to grab the data out of the textbox (copying it), remove the oldest lines manually, then replace the text in the box (another copy). Twice, since the window is split. That seems pretty inefficient.

I've looked all over and have't seen any text control that will work without having its own copy of the data. I could write my own, but that's a fair amount of effort as well. Does anyone out there know of one that can be databound and not require copying so much? Or am I just missing something in how the textbox works? This has to be a pretty common scenario so I'm a bit suprised I have not been able to find much info on it..
GeneralRe: To Textbox or not to Textbox Pin
MoustafaS19-Mar-05 5:46
MoustafaS19-Mar-05 5:46 
GeneralRe: To Textbox or not to Textbox Pin
Luis Alonso Ramos19-Mar-05 22:25
Luis Alonso Ramos19-Mar-05 22:25 
GeneralRe: To Textbox or not to Textbox Pin
Todd_s0220-Mar-05 14:52
Todd_s0220-Mar-05 14:52 
GeneralRe: To Textbox or not to Textbox Pin
Luis Alonso Ramos20-Mar-05 18:40
Luis Alonso Ramos20-Mar-05 18:40 
GeneralCombobox in Datagrid Class Pin
18-Mar-05 19:43
suss18-Mar-05 19:43 
GeneralRe: Combobox in Datagrid Class Pin
MoustafaS19-Mar-05 5:59
MoustafaS19-Mar-05 5:59 
GeneralStoring Some settings in Registry Pin
ronin177018-Mar-05 16:04
ronin177018-Mar-05 16:04 
GeneralRe: Storing Some settings in Registry Pin
MoustafaS19-Mar-05 6:08
MoustafaS19-Mar-05 6:08 
GeneralRe: Storing Some settings in Registry Pin
Yaakov Davis19-Mar-05 10:20
Yaakov Davis19-Mar-05 10:20 
GeneralRe: Storing Some settings in Registry Pin
Luis Alonso Ramos19-Mar-05 22:32
Luis Alonso Ramos19-Mar-05 22:32 
GeneralSending files with data not compatable with a byte variable Pin
zaXch18-Mar-05 11:16
zaXch18-Mar-05 11:16 
GeneralRe: Sending files with data not compatable with a byte variable Pin
turbochimp18-Mar-05 12:47
turbochimp18-Mar-05 12:47 
GeneralRe: Sending files with data not compatable with a byte variable Pin
zaXch18-Mar-05 14:26
zaXch18-Mar-05 14:26 
GeneralRe: Sending files with data not compatable with a byte variable Pin
zaXch19-Mar-05 5:54
zaXch19-Mar-05 5:54 
Generalhelp with implementation Pin
John L. DeVito18-Mar-05 10:33
professionalJohn L. DeVito18-Mar-05 10:33 
GeneralRe: help with implementation Pin
turbochimp18-Mar-05 12:59
turbochimp18-Mar-05 12:59 
Questionhow to customize a window Pin
Pikebu18-Mar-05 8:52
Pikebu18-Mar-05 8:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.