Results 1 to 4 of 4

Thread: How to manage timer ?

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2012
    Posts
    48

    How to manage timer ?

    I have 3 or more timers in form. Now, how can check it: enable = true or false??? Example, i want:
    Check 3 timer, if timerX.enable = true
    {
    timerX.enable = false;
    }
    Thanks for help.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How to manage timer ?

    Think about it. The Enabled property of any object is a Boolean. How do you usually check IF a Boolean value is True or False?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Fanatic Member x-ice's Avatar
    Join Date
    Mar 2004
    Location
    UK
    Posts
    671

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How to manage timer ?

    I just read your first post again and I'm thinking I may have misinterpreted it slightly. Are you saying that you want to disable the Timer if it is currently enabled? What if it's currently disabled? Do you want to enable it? You need to provide a FULL and CLEAR explanation of the problem because your example seems to suggest something different to what you asked for.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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