Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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
Hi
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