WinForm Timers not firing

Andrew Fraser TDK 101 Reputation points
2021-04-08T10:27:49.033+00:00

I have an application that has been running for the last couple of years without problem.
I had reason to make some additions to the application recently and it completely stopped working.
On closer investigation, NONE of the timers that I have dropped onto my main application form are firing even after setting their Enabled property to true !
My application uses half a dozen timers on the form for different tasks and none of them are now working.
I have no explanation as to why this is happening other than suspecting that a .NET Framework update broke something but there does not seem to be any 'noise' on the internet suggesting no one else has this issue.

Does anyone have any thoughts what might be happening ?

Andy

Developer technologies | Windows Forms
Developer technologies | .NET | .NET Runtime
Developer technologies | C#
{count} votes

Accepted answer
  1. Andrew Fraser TDK 101 Reputation points
    2021-04-09T10:25:16.537+00:00

    Solved !
    It turns out I had carelessly called Refresh on my ribbon bar control within the ribbon bar paint handler that causing recursive paint messages to be generated.
    If I had followed David's suggestion to use Spy++ might have seen all these messages flying about !
    Surprised this did not cause additional problems.

    Thanks to both of you for your suggestions - much appreciated.

    Andy

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.