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

  • Home
  • SEARCH
  • 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 7549405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:56:27+00:00 2026-05-30T09:56:27+00:00

Looking for some others thoughts on this cause I couldn’t come up with anything

  • 0

Looking for some others thoughts on this cause I couldn’t come up with anything clever.

I have a log file that I let users search with by string matching. Presumably, this log file may get huge, so I decided to run the search on a BackgroundWorker and return an array of matching strings to a RichTextBox on my main UI.

I made my log around a million lines and let it rip. At first, I thought my thread wasn’t actually executing off the main process, but then I realized the search operation was extremely fast and it was updating the GUI that was taking 10+ seconds to do:

if ( e->Error != nullptr )
      {
         MessageBox::Show( e->Error->Message );
      }
      else
      if ( e->Cancelled )
      {

      }
      else
      {
          try
          {
             // This is the line that kills me
             log_textBox->Lines = dynamic_cast<array<String^>^>(e->Result);
             if(log_textBox->Lines->Length == 0)
                  log_textBox->Text = "No Matches Found.";
          }
          catch(Exception^ e)
          {

          }
      }

Loading the resultant array into the textbox is what is freezing my UI. Is there anyway to update the UI with potentially large amounts of data without appearing to be locked up?

  • 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-05-30T09:56:29+00:00Added an answer on May 30, 2026 at 9:56 am

    The Textbox class is not meant for the display of large amounts of data (take a look at Notepad).

    Have you considered using a ListView in VirtualMode instead?

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

Sidebar

Related Questions

Looking for some direction here as I'm running into some migration problems. We have
Looking at some code I'm maintaining in System Verilog I see some signals that
Looking for some guidance on a WCF service I’m prototyping. I have a WCF
I'm looking at some code with this form: 1 package com.stackoverflow.java.questions; 2 import java.util.ArrayList;
I'm looking to add some defensive exception handling/retry logic around my (Java) code that
I have some code that does custom drawing. Basically it is form fill program
I have some Fortran 77 source files that I'm trying to convert from a
I'm looking for a suitable client side architecture that will meet some or all
I have begun work on a personal project that may end up having some
I did some looking around at how other sites might handle this and didn't

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.