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 Members | Constructors | Methods | Events | ||
Icon | Member | Description |
---|---|---|
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