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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Multithreading in c# windows application

Multithreading in c# windows application

Scheduled Pinned Locked Moved C#
csharpdesignhelptutorial
2 Posts 2 Posters 1 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.
  • D Offline
    D Offline
    dhol
    wrote on last edited by
    #1

    Hi I have to work on multithreading concepts in c# windows application. Design a form with 3 labels and 3 text boxes and a button. I should enter the time in three text boxes. Three different times. And press the Button. Label 1 should become green color after the entered time period in text box1. Label 2 should become Yellow color after the entered time period in text box2. Label 3 should become Blue color after the entered time period in text box3. I should have three threads to start three processes. Start the three threads in the button click. Thread 1 to start the thread and wait for the entered time in text box 1 and make the label 1 green. And so on. U should enter the time in milli seconds. 1 second = 1000 milliseconds. So if I want to enter 5 seconds. I should enter 5000 in the text box. I should Write a windows application for this. Pls anyone explain me how to do this . pls help me to do this sample. dhol

    C 1 Reply Last reply
    0
    • D dhol

      Hi I have to work on multithreading concepts in c# windows application. Design a form with 3 labels and 3 text boxes and a button. I should enter the time in three text boxes. Three different times. And press the Button. Label 1 should become green color after the entered time period in text box1. Label 2 should become Yellow color after the entered time period in text box2. Label 3 should become Blue color after the entered time period in text box3. I should have three threads to start three processes. Start the three threads in the button click. Thread 1 to start the thread and wait for the entered time in text box 1 and make the label 1 green. And so on. U should enter the time in milli seconds. 1 second = 1000 milliseconds. So if I want to enter 5 seconds. I should enter 5000 in the text box. I should Write a windows application for this. Pls anyone explain me how to do this . pls help me to do this sample. dhol

      C Offline
      C Offline
      CoolAmir
      wrote on last edited by
      #2

      I'm no expert in Threading but i could accomplish the same task without explicitly using threads. I used the Timer class.

      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