海海日记-冯海滨博客

您现在的位置是:首页 > C# > 正文

C#

C#延时方法片段

happyfhb2012-07-19C#1121

 label4.Text = "输入非数字字符";
                //延时1秒
                DateTime now = DateTime.Now;
                int miao = now.Second;
                int nowmiao = 0;
                while (miao + 1 > nowmiao)
                {
                    DateTime on = DateTime.Now;
                    nowmiao = on.Second;
                }

平淡中储蓄成长

发表评论

评论列表

  • 这篇文章还没有收到评论,赶紧来抢沙发吧~