Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8401375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:47:25+00:00 2026-06-09T21:47:25+00:00

I have a client app in c# winforms that, among other tasks, receives real

  • 0

I have a client app in c# winforms that, among other tasks, receives real time logs from another app over a tcp socket. If I just add the log text to a richtextbox, the application is quickly bogged down. Obviously the user can’t read text at the rate its coming in, but we have to ability to stop and start the system so we can look back through the logs.
Is there a better choice than richtextbox? I would like to retain the ability to color text and the ability to scroll back through the log. Would something in WPF work better?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:47:26+00:00Added an answer on June 9, 2026 at 9:47 pm

    You can add all the lines to a List which can look something like this:

    public class LogLine
    {
        public string Message { get; set; }
        public Color Color { get; set; }
        public DateTime TimeStamp { get; set; }
    }
    
     List<LogLine> _log = new List<LogLine>(5000);
    

    and use a control which supports virtualization to display the LogLines. You can also create your own by using for example 10 Labels/TextBlocks which you manually assign values from the List based on scrollposition.
    The solution will eat memory if you let the list grow unlimited. If you need huge logs, you should use the filesystem to save data and truncate the list periodically.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WinForms client-server app running on a Novell network that produces the
We have a huge client/server WinForms app that uses .NET remoting to pass DAOs
I have Android client app that communicates with server using Socket . On my
I have a .NET client app that intermittently loses connection to a UNC share
Suppose I have a client side app that sends out requests to a rails
I have a Winforms app that consumes a C# Webservice. If the WebService throws
I have a library assembly that outputs trace information, and a client winforms application
I've derived my own clientbase class. I have a winforms app (client) and the
We have an MSI installer for a .Net WinForms app for Windows XP that
We have a WinForms app that runs fine on x86, but has many third-party

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.