Doevents函數及form_activate事件(編號:6719)

Doevents函數及form_activate事件的功用是什麼??
而什麼狀況會使用到呢??