By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,852 Members | 2,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,852 IT Pros & Developers. It's quick & easy.

help regarding time

P: 32
i want to enter the data after 2 minutes .. please provide me d code or some idea
Jan 16 '08 #1
Share this Question
Share on Google+
3 Replies


debasisdas
Expert 5K+
P: 8,127
after 2 minutes of what ?
Jan 16 '08 #2

P: 32
suppose in my textbox already 5 value is stored then i want after 2 mins it should be 6........automatically
Jan 16 '08 #3

Expert 5K+
P: 8,434
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.
Jan 16 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.