help regarding time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • priyanka1915
    New Member
    • Nov 2007
    • 32

    help regarding time

    i want to enter the data after 2 minutes .. please provide me d code or some idea
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    after 2 minutes of what ?

    Comment

    • priyanka1915
      New Member
      • Nov 2007
      • 32

      #3
      suppose in my textbox already 5 value is stored then i want after 2 mins it should be 6........automa tically

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by priyanka1915
        i want to enter the data after 2 minutes .. please provide me d code or some idea
        Well, the timing is easy enough. You just create a timer control on the form, set its Interval property to the appropriate number of milliseconds, and when you are ready, start the timer.

        After the specified interval, it will fire an event. So in the event procedure, you put the code to do what you want to do.

        I'm afraid I didn't understand very well the part about the 5 and 6 data items.

        The specific details of how you do all this will vary depending on the version of VB, anyway. For instance, in VB6 I think the limit for a timer's interval is around 33 or 66 seconds (I forget which). So to wait two minutes you would have to keep track of the time over multiple events.

        Comment

        Working...