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

Run OnTimer Event Only Once

P: n/a
Hi,

I have a form that I need loaded and visible prior to another form
being loaded (hidden.) I am opening the main form, then using the
OnTimer event (with a timer interval of 2000) to open the second form.
How can I run this event only once, instead of per the value of the
timer interval property?

Any help you can lend would be appreciated.

Henry

Mar 28 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Henry Stockbridge wrote:
Hi,

I have a form that I need loaded and visible prior to another form
being loaded (hidden.) I am opening the main form, then using the
OnTimer event (with a timer interval of 2000) to open the second form.
How can I run this event only once, instead of per the value of the
timer interval property?

Any help you can lend would be appreciated.

Henry

Set the interval to 0 once the event for the timer fires.
Mar 28 '06 #2

P: n/a
Thanks. Works excellently.

Mar 28 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.