Timer Contorl RRS feed

  • Question

  • I am just display time in my application on tick event of timer.

    but some time my application hanged due to timer, what to do? any buddy help me?

    Wednesday, May 8, 2013 3:37 PM


All replies

  • Draw when the tick occurs.  Invalidation is not enough.  Particularly if you want it to occur when you are dragging the window.

    You should share more details if you want more help.  Like show the code that you used to "display time".  And show the setup and handler for your timer.

    And also describe the "hang".  I don't believe it's possible to hang the application due to a timer, but you might inadvertently suspend drawing or handling of the tick events depending on what code you wrote.

    Wednesday, May 8, 2013 3:50 PM
  • Agreed, we need code before we can even start to begin to guess what went wrong.

    Also, please specify wich of the 3+ Timer Classes you used:

    Let's talk about MVVM:

    Wednesday, May 8, 2013 4:13 PM