Timer event

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yhlove@gmail.com

    #1

    Timer event

    Hi

    I want to use a timer in my project so I would be able to set it's
    value and able to handle the timer event. how can I do that?

    (for those whi fimiliar with linux systems: I'm looking for somthing
    like the signal SIGTERM and the function alarm(int sec). with that
    function you can set the timer to x seconds and after that time your
    process will get the signal SIGTERM and then you can handle it and
    refresh the timer again...)

    Thanks
    Yhlove

  • Cor Ligthert [MVP]

    #2
    Re: Timer event

    In my idea does the most simple one

    Windows.forms.t imer what you want.
    http://msdn.microsoft.com/library/de...ClassTopic.asp

    Beside that there are 2 other times and some stopwatches, however as I
    understood your problem well than the one above fits. (The other ones are
    for multithreading on the non UI thread and for Windows Services).

    Cor

    <yhlove@gmail.c omschreef in bericht
    news:1172332727 .547368.91940@a 75g2000cwd.goog legroups.com...
    Hi
    >
    I want to use a timer in my project so I would be able to set it's
    value and able to handle the timer event. how can I do that?
    >
    (for those whi fimiliar with linux systems: I'm looking for somthing
    like the signal SIGTERM and the function alarm(int sec). with that
    function you can set the timer to x seconds and after that time your
    process will get the signal SIGTERM and then you can handle it and
    refresh the timer again...)
    >
    Thanks
    Yhlove
    >

    Comment

    Working...