timer.start and thread

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dzemo

    #1

    timer.start and thread

    I have windows.forms.t imer on my form and this code

    Private Sub Timer1_Tick(ByV al sender As System.Object, ByVal e As
    System.EventArg s) Handles Timer1.Tick
    Timer1.Stop()
    Recieve.Start()
    End Sub

    Receive is Thread. How from thread to start timer again. In my thread I have
    timer1.start but that won't do it
    Any help
    thx


  • Robin Tucker

    #2
    Re: timer.start and thread

    Try "invoking" a method on your form from the thread that starts up the
    timer.

    "Dzemo" <dzemo@wizard.b a> wrote in message
    news:OSBTS0ZcFH A.2696@TK2MSFTN GP09.phx.gbl...[color=blue]
    >I have windows.forms.t imer on my form and this code
    >
    > Private Sub Timer1_Tick(ByV al sender As System.Object, ByVal e As
    > System.EventArg s) Handles Timer1.Tick
    > Timer1.Stop()
    > Recieve.Start()
    > End Sub
    >
    > Receive is Thread. How from thread to start timer again. In my thread I
    > have timer1.start but that won't do it
    > Any help
    > thx
    >[/color]


    Comment

    Working...