本文介绍了创建延迟而不使用多线程...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨朋友
我有一个受事件约束的程序,只适用于应用断点,所以我应该在它的第一个事件时编写一个延迟方法...
但是我不使用多线程...我想我应该使用计时器.请对此提供帮助吗?
....而且我可以不使用计时器来做到这一点吗?
感谢您的时间.
hi friends
i have a program that is event oreinted and just work with applying the breakpoint so i should write a delay method at first of its events ...
but i dont use of multithread ... i guess i should use of timer .please help me about this?
.... and can i do this without using timer?
thanks for your time
推荐答案
System.Threading.Thread.Sleep(5000);
该代码使您的应用程序等待5秒
this codes make your application waiting for 5 seconds
这篇关于创建延迟而不使用多线程...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!