ControlImage Method

NI Vision for Visual Basic

ControlImage Method

Syntax

CWIMAQViewer.ControlImage

Return Type

Picture

The image of the entire control.

Purpose

Returns an image of the entire control.

Remarks

The image is returned as a Windows Metafile. You can use the image for printing.

Example

Private Sub Run_Click()
    'Set the picture property of the picturebox control in VB to
    'an image of the CWIMAQViewer control.
    Set Picture1.Picture = CWIMAQViewer1.ControlImage
End Sub