home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / Advanced_S656403262002.psc / Source / VB / ScreenRipper / PrintScreen.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2002-03-20  |  1.3 KB  |  32 lines

  1. VERSION 5.00
  2. Begin VB.Form frmPrintScreen 
  3.    BackColor       =   &H00FFFFFF&
  4.    Caption         =   "Form1"
  5.    ClientHeight    =   3195
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   4680
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   3195
  11.    ScaleWidth      =   4680
  12.    StartUpPosition =   3  'Windows Default
  13. Attribute VB_Name = "frmPrintScreen"
  14. Attribute VB_GlobalNameSpace = False
  15. Attribute VB_Creatable = False
  16. Attribute VB_PredeclaredId = True
  17. Attribute VB_Exposed = False
  18. Option Explicit
  19. '--- Quick Print Screen Utility written by Gary Choma
  20. '--- In a nutshell, public method "PrintScreenSnapShot" calls
  21. '--- an API to trigger the Windows Print-Screen keypress,
  22. '--- pastes the screen print from the Windows clipboard
  23. '--- onto a Form's background, and calls the Form's .Print method to
  24. '--- print it to the Windows default printer.
  25. '--- MODIFICATIONS: Made private method "PrintBitmap" public so that
  26. '--- any Picture object can easily be printed.
  27. '--- This form can easily be added to existing projects.
  28. '--- 02/11/2002 GCC - Here's a sample of the code to add to
  29. '--- a form to enable print-screen feature via F6 keypress:
  30. 'Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
  31. '    '--- 12/12/2001 GCC - Allow PrintScreen feature to work on a NON-MDI Child form:
  32.