Sub mnuScreenshot_Action
Timer1.Enabled = False
Dim fc As FileChooser
fc.Initialize
fc.SetExtensionFilter("Image", Array As String("*.png"))
Dim fileName As String = fc.ShowSave(MainForm)
If fileName <> "" Then
If fileName.ToLowerCase.EndsWith(".png") = False Then fileName = fileName & ".png"
Dim out As OutputStream = File.OpenOutput("", fileName, False)
cvs.Snapshot.WriteToStream(out)
out.Close
Log("File saved: " & fileName)
End If
Timer1.Enabled = True
End Sub