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

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,821 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,201 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,117 questions
{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