logs window with a lot of lines
-
hi all! i need c# control for tracing logs that can contain a lot of lines and be quick to scroll and to draw like in the application "registry monitor", "file monitor" or output window in VS, etc... i tried to make virtual list in the list view, but it didn't help. :( may be i did something wrong... could you please help me? may be you know how to implement or some links in the internet with the ideas or implementations? thanks, Pavel
ISQ 469907496
-
hi all! i need c# control for tracing logs that can contain a lot of lines and be quick to scroll and to draw like in the application "registry monitor", "file monitor" or output window in VS, etc... i tried to make virtual list in the list view, but it didn't help. :( may be i did something wrong... could you please help me? may be you know how to implement or some links in the internet with the ideas or implementations? thanks, Pavel
ISQ 469907496
I like ListBox a lot as it is line-oriented and knows to handle millions of lines pretty well. Here[^] is a typical use. When necessary, I make it UserDrawn so I can have more control on formatting (quite often all I need is some text lines in bold and/or a different color). :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
-
I like ListBox a lot as it is line-oriented and knows to handle millions of lines pretty well. Here[^] is a typical use. When necessary, I make it UserDrawn so I can have more control on formatting (quite often all I need is some text lines in bold and/or a different color). :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
thanks, but i need multi-column control... so, listbox will not be helpfull
ISQ 469907496
-
thanks, but i need multi-column control... so, listbox will not be helpfull
ISQ 469907496
again, OwnerDrawn allows for lots of formatting. I've done columnar output with ListBox. You can make it look like a DataGridView (without the column sort facilities). :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
-
again, OwnerDrawn allows for lots of formatting. I've done columnar output with ListBox. You can make it look like a DataGridView (without the column sort facilities). :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
ok, i'll try, but i'm really not sure that this implementation will be faster than listview virtual mode...
ISQ 469907496
-
ok, i'll try, but i'm really not sure that this implementation will be faster than listview virtual mode...
ISQ 469907496
whatever control you choose, performance will depend very much on how you use it. If your control is large, and you are adding/updating/scrolling it all the time, then those actions will end up consuming almost all available CPU cycles. You may want to look at: - SuspendLayout/ResumeLayout - AddRange - only updating TopIndex at regular intervals (say with a 1-second periodic timer). :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.