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.
public class Crosshair : UserControl
Creates a new crosshair control.
Occurs when the user finished dragging the crosshair. Use Position to detect the cursor position.
Occurs while the user drags the crosshair. Use Position to detect the cursor position.
Clean up any resources being used.(Overrides ContainerControl.Dispose(Boolean).)
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.
Assembly: ManagedWinapi (Module: ManagedWinapi) Version: 0.3.0.0 (0.3)