The WinEvent type exposes the following members.

Constructors

  NameDescription
Public methodWinEvent

Methods

  NameDescription
Public methodCreateObjRef (Inherited from MarshalByRefObject.)
Public methodDispose()()()() (Inherited from Component.)
Protected methodDispose(Boolean)
Disposes resources and destroys the object.
(Overrides Component..::..Dispose(Boolean).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Component.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetLifetimeService (Inherited from MarshalByRefObject.)
Protected methodGetService (Inherited from Component.)
Public methodGetType (Inherited from Object.)
Public methodInitializeLifetimeService (Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone()()()() (Inherited from Object.)
Protected methodMemberwiseClone(Boolean) (Inherited from MarshalByRefObject.)
Public methodToString (Inherited from Component.)

Properties

  NameDescription
Public propertyAbout
Shows version information and displays about box.
Public propertyActive
Activates and deactivates WinEvent hook.
Protected propertyCanRaiseEvents (Inherited from Component.)
Public propertyContainer (Inherited from Component.)
Protected propertyDesignMode (Inherited from Component.)
Protected propertyEvents (Inherited from Component.)
Public propertyMaxEvent
Specifies the event for the highest event value in the range of events that are handled by the hook function.
Public propertyMinEvent
Specifies the event for the lowest event value in the range of events that are handled by the hook function.
Public propertyProcess
Specifies the ID of the process from which the hook function receives events. Specify zero (0) to receive events from all processes on the current desktop.
Public propertySite (Inherited from Component.)
Public propertySkipOwnProcess
Prevents this instance of the hook from receiving the events that are generated by threads in this process.
Public propertySkipOwnThread
Prevents this instance of the hook from receiving the events that are generated by the thread that is registering this hook.
Public propertyThread
Specifies the ID of the thread from which the hook function receives events. If this parameter is zero, the hook function is associated with all existing threads on the current desktop.

Events

  NameDescription
Public eventCaptureEnd
Occurs when mouse capture was released.
Public eventCaptureStart
Occurs when mouse is captured.
Public eventContextHelpEnd
Occurs when window has exited context-sensitive Help mode.
Public eventContextHelpStart
Occurs when window has entered context-sensitive Help mode.
Public eventDisposed (Inherited from Component.)
Public eventMenuEnd
Occurs when menu is closed.
Public eventMenuPopupEnd
Occurs when popup menu is closed.
Public eventMenuPopupStart
Occurs when popup menu is started.
Public eventMenuStart
Occurs when menu is started.
Public eventMinimizeEnd
Occurs when a window object has been minimized.
Public eventMinimizeStart
Occurs when a window object is about to be minimized.
Public eventMoveSizeEnd
Occurs when the movement or resizing of a window has finished.
Public eventMoveSizeStart
Occurs when window is being moved or resized.
Public eventObjectCreate
Occurs when object has been created.
Public eventObjectDestroy
Occurs when object has been destroyed.
Public eventObjectFocus
Occurs when object has received the keyboard focus.
Public eventObjectHide
Occurs when object is hidden.
Public eventObjectLocationChanged
Occurs when object has changed location, shape, or size.
Public eventObjectNameChanged
Occurs when object's Name property has changed.
Public eventObjectReorder
Occurs when container object has added, removed, or reordered its children.
Public eventObjectSelection
Occurs when selection within a container object has changed.
Public eventObjectSelectionAdd
Occurs when child within a container object has been added to an existing selection.
Public eventObjectSelectionRemove
Occurs when item within a container object has been removed from the selection.
Public eventObjectSelectionWithin
Occurs when numerous selection changes have occurred within a container object.
Public eventObjectShow
Occurs when hidden object is shown.
Public eventObjectStateChanged
Occurs when object's state has changed.
Public eventObjectValueChanged
Occurs when object's Value property has changed.
Public eventScrollingEnd
Occurs when scrolling has ended on a scroll bar.
Public eventScrollingStart
Occurs when scrolling has started on a scroll bar.
Public eventSwitchEnd
Occurs when the user has released ALT+TAB.
Public eventSwitchStart
Occurs when the user has pressed ALT+TAB, which activates the switch window.
Public eventSystemAlert
Occurs for system alert events.
Public eventWindowForeground
Occurs when foreground window is changed.
Public eventWinEventHook
Occurs for each WinEvent event.

See Also