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
  1. Home
  2. General Programming
  3. C#
  4. Threads

Threads

Scheduled Pinned Locked Moved C#
csharphelptutorial
3 Posts 3 Posters 0 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
    deeps26
    wrote on last edited by
    #1

    I don't know how to use Threads in C#. I want to check if a website is loaded or not. If not loaded, wait for 3 secs and check again. If still not loaded do something. Please help me with some pointers. Thanks in advance :) Vishal...

    M S 2 Replies Last reply
    0
    • D deeps26

      I don't know how to use Threads in C#. I want to check if a website is loaded or not. If not loaded, wait for 3 secs and check again. If still not loaded do something. Please help me with some pointers. Thanks in advance :) Vishal...

      M Offline
      M Offline
      maheswara
      wrote on last edited by
      #2

      In C# there are function pointers which are nothing but DELEGATES so delegates, which is used to reference to your objects. With asynchronous programming, the caller must define the delegate when calling a method, if the caller uses a delegate. mahes

      1 Reply Last reply
      0
      • D deeps26

        I don't know how to use Threads in C#. I want to check if a website is loaded or not. If not loaded, wait for 3 secs and check again. If still not loaded do something. Please help me with some pointers. Thanks in advance :) Vishal...

        S Offline
        S Offline
        S Senthil Kumar
        wrote on last edited by
        #3

        Look for the Thread class in the System.Threading namespace. Creating a thread is as simple as instantiating a new Thread instance and calling Start on it. You might also want to look into the BeginInvoke method, which you can call on any delegate. Regards Senthil _____________________________ My Blog | My Articles | WinMacro

        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