%@ Page Language="VB" ContentType="text/html" ResponseEncoding="windows-874" %>
คำสั่ง Application.Doevents นั้นเป็นคำสั่งสำหรับ ใช้ หน่วงการทำงานของ CPU ในกรณีที่เรา ใช้คำสั่งวน Loop ลอง ดู ความแตกต่าง ของ สองโปรแกรมต่อไปนี้ 1. กรณีไม่ใช้ Doevents
For i as long = 1 to 100000 label1.text =i Next i
-----------------------
2. กรณีใช้ Application.Doevents
For i as long = 1 to 100000 Application.Doevents Label1.text =i Next i