Click here to Skip to main content
15,881,757 members
Articles / Programming Languages / Visual Basic

Screen Shot Application

Rate me:
Please Sign up or sign in to vote.
3.74/5 (69 votes)
24 Sep 2010CPOL5 min read 302K   18.6K   210  
Screen Shot is a simple application that allows a user to quickly capture images from the screen and save them in a user predefined folder.
''' <summary>
''' Provides data for the WindowsHookLib.ClipboardHook.ClipboardChanged events.
''' </summary>
<DebuggerNonUserCode()> _
<DebuggerDisplay("HWnd = {_hwnd} DHWnd = {_dhwnd}")> _
Public Class ClipboardEventArgs
    Inherits System.EventArgs

#Region " Members "

    Private ReadOnly _hWnd As IntPtr
    Private ReadOnly _sWnd As IntPtr

#End Region

#Region " Methods "

    ''' <param name="hookedWindow">A window handle associated with this hook.</param>
    ''' <param name="sourceWindow">The window handle that has set the last clipboard data.</param>
    Sub New(ByVal hookedWindow As IntPtr, ByVal sourceWindow As IntPtr)
        Me._hWnd = hookedWindow
        Me._sWnd = sourceWindow
    End Sub

#End Region

#Region " Properties "

    ''' <summary>
    ''' Gets a window handle associated with this hook.
    ''' </summary>
    Public ReadOnly Property HookedWindow() As IntPtr
        Get
            Return Me._hWnd
        End Get
    End Property

    ''' <summary>
    ''' Gets the window handle that has set the last clipboard data.
    ''' </summary>
    Public ReadOnly Property SourceWindow() As IntPtr
        Get
            Return Me._sWnd
        End Get
    End Property

#End Region

End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) ZipEdTech
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions