Managed Windows API
Crosshair Class
NamespacesManagedWinapiCrosshair
This component displays a crosshair icon that can be dragged to any point on screen. This is useful to select other programs by dragging the crosshair to a program window.
Declaration Syntax
C#
public class Crosshair : UserControl
Members
All MembersConstructorsMethodsEvents



IconMemberDescription
Crosshair()()()
Creates a new crosshair control.

CrosshairDragged
Occurs when the user finished dragging the crosshair. Use Position to detect the cursor position.

CrosshairDragging
Occurs while the user drags the crosshair. Use Position to detect the cursor position.

Dispose(Boolean)
Clean up any resources being used.
(Overrides ContainerControl.Dispose(Boolean).)
RestoreMouseCapture()()()
When a window is hidden, the .NET framework releases mouse capture. If you hide your window while the crosshair is dragged, invoke this method afterwards to restore mouse capture.

Inheritance Hierarchy

Assembly: ManagedWinapi (Module: ManagedWinapi) Version: 0.3.0.0 (0.3)