User Profile

Collapse

Profile Sidebar

Collapse
ercastro
ercastro
Last Activity: Aug 10 '07, 12:32 PM
Joined: May 22 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Change in Variable value as an Event in VB2005

    Good day to all.

    Is it possible to make a change in the value of a Variable as an Event that will trigger other actions in the code?

    Example: variable1 -> change in value -> initialize other variables

    Thank you very much in advance.


    -- ercastro
    See more | Go to post

  • Let me clarify what I need. I am using BackgroundWorke r() to run a time-consuming task. I put the BackgroundWorke r thread to sleep indefinitely by Thread.Sleep(Ti meout.Infinite) . I require 2 ways to wake the sleeping thread, whichever happens FIRST:
    (1) Issue a Thread.Interrup t in the main thread when I detect a particular string in my text box (data from serial port), and catch this interrupt in BackgroundWorke r as ThreadInterrupt edException;...
    See more | Go to post

    Leave a comment:


  • Thank you for responding. I have actually used BackgroundWorke r() already. My problem is how to wake up the BackgroundWorke r() thread from Thread.Sleep using an Interrupt (ThreadInterrup tException).


    -- ercastro
    See more | Go to post

    Leave a comment:


  • Wake up Thread from Sleep in BackgroundWorker

    I am a new user of Visual Basic. I am currently using VB 2005.

    I am running a time-consuming task on the built-in BackgroundWorke r() control of VB. I am using nested loops and sometimes I need to issue Thread.Sleep() while waiting for a specific keyword from my TextBox display window.

    How do I wake up the BackgroundWorke r() thread and resume my code when I detect the keyword that I have been waiting for? How do I...
    See more | Go to post
No activity results to display
Show More
Working...