Dim LastTime As Date = Date.nowDo until (Date.Now - LastTime).TotalSeconds >= 2 Application.doeventsLoopmsgbox("2秒后看到")
System.Threading.Thread.Sleep(1500) '延时1.5秒