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 7789091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:11:29+00:00 2026-06-01T21:11:29+00:00

The error I’m having from my thread is: Cross-thread operation not valid. Control ‘richTextBox8’

  • 0

The error I’m having from my thread is:

Cross-thread operation not valid. Control ‘richTextBox8’ accessed from a thread other than the thread it was created on.

I have this code I use for my List of string that is causing the error.

string[] parts = richTextBox8.Text.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);

Now I’m working with using System.Threading that requires to transform the code above into a format something like this code to work but I’m unable to do it or is there some other way?

richTextBox8.Invoke((Action)(() => richTextBox8.Text += "http://elibrary.judiciary.gov.ph/" + str + "\n"));
  • 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-01T21:11:31+00:00Added an answer on June 1, 2026 at 9:11 pm
    string[] parts = null;
    richTextBox8.Invoke((Action)(() => 
        {
            parts = richTextBox8.Text.Split(new string[] { " " },
            StringSplitOptions.RemoveEmptyEntries); //added semicolon
        }));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Error: Unable to read data from the transport connection: A blocking operation was interrupted
Error: Could not find control 'mytextfield' in ControlParameter 'mycontrolparam'. <asp:ControlParameter ControlID=mytextfield Name=mycontrolparam PropertyName=Text Type=Int32
Error: End tag for 'optgroup' which is not finished. You have probably failed to
Error % javac StringTest.java StringTest.java:4: variable errorSoon might not have been initialized errorSoon[0] =
error C2784: 'std::basic_ostream<_Elem,_Traits> &std::operator <<(std::basic_ostream<_Elem,_Traits> &,const std::basic_string<_Elem,_Traits,_Alloc> &)' : >could not deduce template argument
Error: Could not load System.Data.SqlServerCe.Entity.dll. Reinstall SQL Server Compact. Inner Exception: {Could not load
Error Details: The Web application at http://dev001aaamaaind:333/ could not be found. Verify that you
Error 3 Running transformation: System.ArgumentException: Format of the initialization string does not conform to
Error: Database table users for model User was not found. I'm expriencing the error
Error: One or more models did not validate: maps.parking: 'layer_id' has a relation with

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.