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. Visual Basic
  4. Thread Problem ?

Thread Problem ?

Scheduled Pinned Locked Moved Visual Basic
helpquestion
2 Posts 2 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.
  • M Offline
    M Offline
    manuo5
    wrote on last edited by
    #1

    Hello friends, We want to create background thread which run automatically in regular interval and run a particular sub ? please give your advice Thanks Manu

    E 1 Reply Last reply
    0
    • M manuo5

      Hello friends, We want to create background thread which run automatically in regular interval and run a particular sub ? please give your advice Thanks Manu

      E Offline
      E Offline
      ESTAN
      wrote on last edited by
      #2

      You might wanne check out this: ' initialize Private Timer_Queue As New System.Threading.Timer(New System.Threading.TimerCallback(AddressOf Timer_Queue_TimerCallBack), Nothing, System.Threading.Timeout.Infinite, Nothing) Private Const Timer_QueueInterval As Long = 250 ' at load or somewhere else... Timer_Queue.Change(0, Timer_QueueInterval) ' the worker Private Sub Timer_Queue_TimerCallBack(ByVal state As Object) ' do work End Sub enjoy.

      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