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, a file with a .bmp extension, even if the FileName parameter informs another file extension, such as .gif or .jpg.

 

The next code contains a usage example of this method.

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

Was this page useful?