While running the following code:

Do While (err = 0)
err = CANPC_read_ac(param)
frmMonitor.StatusBar1.SimpleText = "No new Can event"
Loop

none of my events (cancel_click) etc work. The program is in a loop waiting for err to change from zero. Is there anyway of checking the "event list" so that my buttons still work?