Handling Pause and Continue

You may want to use the pause and continue feature of the controller in your GUI.
Typically, you will have a dialog with a pause button and a continue button. For these buttons to work properly, you need to set the EventTaskType property for each button to 1 – NoPause.
This is because when the button click event executes, the event task must ignore the pause state of the controller.

Function frmMain_btnPause_Click(Sender$ As String)  
    Pause  
Fend  
Function frmMain_btnCont_Click(Sender$ As String)  
    Cont  
Fend