Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. logs window with a lot of lines

logs window with a lot of lines

Scheduled Pinned Locked Moved C#
csharpvisual-studiowindows-adminhelptutorial
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    IWannaTalk
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • I IWannaTalk

      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

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      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 1 Reply Last reply
      0
      • L Luc Pattyn

        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 Offline
        I Offline
        IWannaTalk
        wrote on last edited by
        #3

        thanks, but i need multi-column control... so, listbox will not be helpfull

        ISQ 469907496

        L 1 Reply Last reply
        0
        • I IWannaTalk

          thanks, but i need multi-column control... so, listbox will not be helpfull

          ISQ 469907496

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          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.

          I 1 Reply Last reply
          0
          • L Luc Pattyn

            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.

            I Offline
            I Offline
            IWannaTalk
            wrote on last edited by
            #5

            ok, i'll try, but i'm really not sure that this implementation will be faster than listview virtual mode...

            ISQ 469907496

            L 1 Reply Last reply
            0
            • I IWannaTalk

              ok, i'll try, but i'm really not sure that this implementation will be faster than listview virtual mode...

              ISQ 469907496

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups