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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:12:28+00:00 2026-05-23T16:12:28+00:00

I have to resolve problem which in simple way could be like: GUI app

  • 0

I have to resolve problem which in simple way could be like:

  1. GUI app with Buttons start/stop (start/stop starts/stops the threads) and multiline textbox
  2. 2 independent threads which do:
    THREAD A (Separated calss): runs in loop and generates random numbers in interval 1..20 with 150ms delay. When is generated odd number, then is sent to mainform where is received multiplied by 100 and result added to the textbox on form.
    Please, any help, simple code or whatever – or link where to study how to write it, I’m totally newbie in C#
  • 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-23T16:12:29+00:00Added an answer on May 23, 2026 at 4:12 pm

    You should use the Control’s BeginInvoke method to marshal data from a background thread to the main thread and update the textBox’s properties. You will find an example similar to your task at:

    Writing to a TextBox from another thread?

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

Sidebar

Related Questions

When I have several conflicts, is there a way to resolve them all by
I'm kind of stuck with one - presumably simple to resolve problem. I want
I'm studying MEF and I'm not able to resolve a problem. I have a
I am creating a Prism 2.1 app in which I have implemented logging, using
Trying my hand at java and android and have run into a problem which
I have an interesting problem. I'd like to create a generic class that can
I have a silly error that I am unable to resolve. I try to
Ok so I've spent a couple hours trying to resolve this issue and have
Has there been discussion around how to resolve equivalent openids? Meaning, I personally have
I have code that looks like the following: //unrelated code snipped resolver.reset(new tcp::resolver(iosvc)); tcp::resolver::query

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.