CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Update Dialog

  1. #1
    Guest

    Update Dialog

    I want to update my dialog every one second. What should I do to update the dialog?

    I have two dialog name CDIAGNOSTIC and CPCBASE. In CDIAGNOSTIC, I has one button everytime I click on this button. It will display CPCBASE dialog, CPCBASE dialog have two label. I want to display label 1 from number 1 to 10 and label 2 from number 10 to 1. CPCBASE dialog only update label 1 and 2 every one second and display different number everytime it updates.


  2. #2
    Join Date
    Jun 1999
    Posts
    315

    Re: Update Dialog

    simple way: create a timer and have it decrement a counter then re apply the label to your dialog

    the way i'd do it: create a worker thread that decrements the counter and re applys it to the dialog...this way will be more accurate...timers execute near the time you specify, but not exactly.

    miked

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured