Detach Method
Syntax
CWIMAQViewer.Detach
Return Type
The detached image.
Purpose
Detaches an image from a Viewer object.
Remarks
The Image property of the Viewer control refers to a new, empty image after you call the Detach method. The previously attached image is destroyed if there are no references to it.
Example
Private Sub Attach_Click()
'Attach both viewers to the same image
CWIMAQViewer2.Attach CWIMAQViewer1.Image
End Sub
Private Sub Detach_Click()
'Detach CWIMAQViewer2 from CWIMAQViewer1.Image
CWIMAQViewer2.Detach
End Sub