The WinEvent type exposes the following members.

Constructors

  NameDescription
WinEvent

Methods

  NameDescription
CreateObjRef (Inherited from MarshalByRefObject.)
DisposeOverloaded.
Equals (Inherited from Object.)
Finalize (Inherited from Component.)
GetHashCode (Inherited from Object.)
GetLifetimeService (Inherited from MarshalByRefObject.)
GetService (Inherited from Component.)
GetType (Inherited from Object.)
InitializeLifetimeService (Inherited from MarshalByRefObject.)
MemberwiseCloneOverloaded.
ToString (Inherited from Component.)

Properties

  NameDescription
About
Shows version information and displays about box.
Active
Activates and deactivates WinEvent hook.
CanRaiseEvents (Inherited from Component.)
Container (Inherited from Component.)
DesignMode (Inherited from Component.)
Events (Inherited from Component.)
MaxEvent
Specifies the event for the highest event value in the range of events that are handled by the hook function.
MinEvent
Specifies the event for the lowest event value in the range of events that are handled by the hook function.
Process
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.
Site (Inherited from Component.)
SkipOwnProcess
Prevents this instance of the hook from receiving the events that are generated by threads in this process.
SkipOwnThread
Prevents this instance of the hook from receiving the events that are generated by the thread that is registering this hook.
Thread
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
CaptureEnd
Occurs when mouse capture was released.
CaptureStart
Occurs when mouse is captured.
ContextHelpEnd
Occurs when window has exited context-sensitive Help mode.
ContextHelpStart
Occurs when window has entered context-sensitive Help mode.
Disposed (Inherited from Component.)
MenuEnd
Occurs when menu is closed.
MenuPopupEnd
Occurs when popup menu is closed.
MenuPopupStart
Occurs when popup menu is started.
MenuStart
Occurs when menu is started.
MinimizeEnd
Occurs when a window object has been minimized.
MinimizeStart
Occurs when a window object is about to be minimized.
MoveSizeEnd
Occurs when the movement or resizing of a window has finished.
MoveSizeStart
Occurs when window is being moved or resized.
ObjectCreate
Occurs when object has been created.
ObjectDestroy
Occurs when object has been destroyed.
ObjectFocus
Occurs when object has received the keyboard focus.
ObjectHide
Occurs when object is hidden.
ObjectLocationChanged
Occurs when object has changed location, shape, or size.
ObjectNameChanged
Occurs when object's Name property has changed.
ObjectReorder
Occurs when container object has added, removed, or reordered its children.
ObjectSelection
Occurs when selection within a container object has changed.
ObjectSelectionAdd
Occurs when child within a container object has been added to an existing selection.
ObjectSelectionRemove
Occurs when item within a container object has been removed from the selection.
ObjectSelectionWithin
Occurs when numerous selection changes have occurred within a container object.
ObjectShow
Occurs when hidden object is shown.
ObjectStateChanged
Occurs when object's state has changed.
ObjectValueChanged
Occurs when object's Value property has changed.
ScrollingEnd
Occurs when scrolling has ended on a scroll bar.
ScrollingStart
Occurs when scrolling has started on a scroll bar.
SwitchEnd
Occurs when the user has released ALT+TAB.
SwitchStart
Occurs when the user has pressed ALT+TAB, which activates the switch window.
SystemAlert
Occurs for system alert events.
WindowForeground
Occurs when foreground window is changed.
WinEventHook
Occurs for each WinEvent event.

See Also