Question Code running - but user still can access form?

aku1a

New member
Joined
Feb 23, 2010
Messages
2
Programming Experience
Beginner
Hey guys, can you help me?
I am trying to figure out how to have a form running in a loop waiting for the user to input something....

such as:

private function looping()
while 1=1
if textbox.text = "hi" then do_something()
endwhile
end function


How can I do this? threading? Backgroundworker? Thanks!!
 
I need to run code as I am waiting for the textbox to become a certain value... I can't use the TextChanged because that only runs if there is a change, but if the user steps away for 5 minutes my code will just sit idol... I want to keep running some code while I am waiting for the textbox.. How?
 
If you want to keep running code you have to do that in a secondary thread. When Textbox notifies it has reached the desired value you can signal the other thread.
 
Back
Top