如何添加一个计时器到我的C ++的项目?我的、计时器、项目

2023-09-04 22:42:23 作者:那壹季、落櫻如雪

我有我的C ++的项目,我想一个事件来加载自己的状态后,开始40秒。我知道有在C ++中一个计时器,但它只能显示时间间隔。

I have my C++ project, and I want an event to start 40 seconds after my form is loaded. I know there is a timer in C++, but it only shows intervals.

我使用Visual Studio 2008中我创建一个Windows窗体应用程序。难道你们知道我有什么功能使用?

I'm using Visual Studio 2008. I'm creating a Windows Form Application. Do you guys know what function I have to use?

推荐答案

设置使用40几秒钟内,并删除计时器,当它第一次触发。定时器

Setup the timer using a 40 seconds interval and remove the timer when it's first triggered.