Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to update a gui component like a label in a timely priod? using bg thread ?

raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tahnk you for reading my post.
I want to have a toolbar for example with a label on it.
I want to update my label , from time to time based on another work which i should allways do.

for example : i should check the database occusionally and if some new record was available i change the label and its color to red.

while i check the database i want my application to continue its work:
user can open menu ....

How should i use threads ?

Thank you
Michael Dunn
Ranch Hand
Posts: 4632
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic