CaptureScreen

<< Click to Display Table of Contents >>

 

CaptureScreen

CaptureScreen(FileName)

This method captures the current Screen and saves it to a file. This methods is similar to the effect produced by the PRINT SCREEN key on Windows. The FileName parameter determines a file name to which this Screen is saved.

 

NOTE

The final file format is Bitmap (.bmp), even if the FileName parameter informs another file extension (.gif, .jpg, etc.).

 

Example:

Sub CommandButton1_Click()
  Screen.Frame.CaptureScreen "c:\temp\screen.bmp"
End Sub

Was this page useful?