1.System.Threading.Thread.CurrentThread.Sleep(1000)

2.Sub delay()
     Dim Start As Integer= Environment.TickCount()
     Dim TimeLast As Integer = 7000 ' 要延遲 t 秒,就設為 t *1000
     Do
     If Environment.TickCount() - Start> TimeLast Then Exit Do
     Application.DoEvents() ' 要記得寫這行,不然都在跑迴圈,畫面可能會不見
     Loop
   End Sub

文章標籤
全站熱搜
創作者介紹
創作者 pcman 的頭像
pcman

電腦購物天堂

pcman 發表在 痞客邦 留言(0) 人氣(4,275)