   Refresh a dialog box
  Hello, I am making a server for my game and am using a dialog box to show the statistics (i.e. player positions, scores,..).  Anyways, my problem is I don't know how to get the dialog to automatically refresh the statistics.  At the moment I the user has to press the refresh button everytime he/she wants to update the stats.  For the type of functionality I need, this is very impractical.  I have searched everywhere for a method; however, have not found one.  Any help would be much appreciated, thank you.   
  Can you provide some information on what programming language and API you are using?  This varies widely.Java, C++, C#, VB?  Win32 API, MFC, WinForms, WPF?AWT, Swing?etc...Provide people with some more information, and I'm sure someone will be willing and able to help you out.Cheers!   ;  How does the dialog display the statistics? Does it need to poll?In that case a simple timer should solve the problem. Use SetTimer/WM_TIMER/KillTimer for this.If the dialog gets updated values from your app simply setting the statistic data to the controls with SetWindowText ought to be sufficient to update it. If you do it this way and it does not get updated check your message pump.   ;  Thank you Endurion, the SetTimer function worked perfectly, and I apologize Jwalsh, next time I post I'll be sure to be more specific.   